From 9d85a5b635e798cd0ce58bf5c74a9b6fc7241c36 Mon Sep 17 00:00:00 2001 From: Pyogenics Date: Sat, 10 May 2025 16:22:32 +0100 Subject: [PATCH] Fix errors that were immediatley obvious --- src/Preloader.as | 46 +- src/TanksTestingTool.as | 28 +- src/_codec/VectorCodecStringLevel2.as | 2 +- src/_codec/VectorCodecStringLevel3.as | 4 +- src/_codec/VectorCodecbyteLevel2.as | 2 +- src/_codec/VectorCodecbyteLevel3.as | 4 +- src/_codec/VectorCodecfloatLevel2.as | 2 +- src/_codec/VectorCodecfloatLevel3.as | 4 +- src/_codec/VectorCodecintLevel2.as | 2 +- src/_codec/VectorCodecintLevel3.as | 4 +- src/_codec/VectorCodeclongLevel2.as | 2 +- src/_codec/VectorCodeclongLevel3.as | 4 +- src/_codec/VectorCodecshortLevel2.as | 2 +- src/_codec/VectorCodecshortLevel3.as | 4 +- src/_codec/commons/CodecA3DMatrix.as | 96 ++-- src/_codec/commons/CodecId.as | 8 +- .../commons/VectorCodecA3DMatrixLevel2.as | 2 +- .../commons/VectorCodecA3DMatrixLevel3.as | 4 +- src/_codec/commons/VectorCodecIdLevel2.as | 2 +- src/_codec/commons/VectorCodecIdLevel3.as | 4 +- src/_codec/unsigned/VectorCodecintLevel2.as | 2 +- src/_codec/unsigned/VectorCodecintLevel3.as | 4 +- src/_codec/unsigned/VectorCodeclongLevel2.as | 2 +- src/_codec/unsigned/VectorCodeclongLevel3.as | 4 +- src/_codec/unsigned/VectorCodecshortLevel2.as | 2 +- src/_codec/unsigned/VectorCodecshortLevel3.as | 4 +- src/_codec/versions/version1/a3d/CodecA3D.as | 48 +- .../version1/a3d/VectorCodecA3DLevel2.as | 2 +- .../version1/a3d/VectorCodecA3DLevel3.as | 4 +- .../version1/a3d/geometry/CodecA3DGeometry.as | 24 +- .../a3d/geometry/CodecA3DIndexBuffer.as | 16 +- .../a3d/geometry/CodecA3DVertexBuffer.as | 24 +- .../geometry/VectorCodecA3DGeometryLevel2.as | 2 +- .../geometry/VectorCodecA3DGeometryLevel3.as | 4 +- .../VectorCodecA3DIndexBufferLevel2.as | 2 +- .../VectorCodecA3DIndexBufferLevel3.as | 4 +- .../VectorCodecA3DVertexBufferLevel2.as | 2 +- .../VectorCodecA3DVertexBufferLevel3.as | 4 +- .../versions/version1/a3d/id/CodecParentId.as | 8 +- .../a3d/id/VectorCodecParentIdLevel2.as | 2 +- .../a3d/id/VectorCodecParentIdLevel3.as | 4 +- .../version1/a3d/materials/CodecA3DImage.as | 16 +- .../version1/a3d/materials/CodecA3DMap.as | 56 +-- .../a3d/materials/CodecA3DMaterial.as | 56 +-- .../materials/VectorCodecA3DImageLevel2.as | 2 +- .../materials/VectorCodecA3DImageLevel3.as | 4 +- .../a3d/materials/VectorCodecA3DMapLevel2.as | 2 +- .../a3d/materials/VectorCodecA3DMapLevel3.as | 4 +- .../materials/VectorCodecA3DMaterialLevel2.as | 2 +- .../materials/VectorCodecA3DMaterialLevel3.as | 4 +- .../version1/a3d/objects/CodecA3DBox.as | 16 +- .../version1/a3d/objects/CodecA3DObject.as | 64 +-- .../version1/a3d/objects/CodecA3DSurface.as | 24 +- .../a3d/objects/CodecA3DTransformation.as | 8 +- .../a3d/objects/VectorCodecA3DBoxLevel2.as | 2 +- .../a3d/objects/VectorCodecA3DBoxLevel3.as | 4 +- .../a3d/objects/VectorCodecA3DObjectLevel2.as | 2 +- .../a3d/objects/VectorCodecA3DObjectLevel3.as | 4 +- .../objects/VectorCodecA3DSurfaceLevel2.as | 2 +- .../objects/VectorCodecA3DSurfaceLevel3.as | 4 +- .../VectorCodecA3DTransformationLevel2.as | 2 +- .../VectorCodecA3DTransformationLevel3.as | 4 +- src/_codec/versions/version2/a3d/CodecA3D2.as | 152 +++---- .../version2/a3d/VectorCodecA3D2Level2.as | 2 +- .../version2/a3d/VectorCodecA3D2Level3.as | 4 +- .../a3d/animation/CodecA3D2AnimationClip.as | 40 +- .../a3d/animation/CodecA3D2Keyframe.as | 16 +- .../version2/a3d/animation/CodecA3D2Track.as | 24 +- .../VectorCodecA3D2AnimationClipLevel2.as | 2 +- .../VectorCodecA3D2AnimationClipLevel3.as | 4 +- .../VectorCodecA3D2KeyframeLevel2.as | 2 +- .../VectorCodecA3D2KeyframeLevel3.as | 4 +- .../animation/VectorCodecA3D2TrackLevel2.as | 2 +- .../animation/VectorCodecA3D2TrackLevel3.as | 4 +- .../a3d/geometry/CodecA3D2IndexBuffer.as | 24 +- .../a3d/geometry/CodecA3D2VertexBuffer.as | 32 +- .../VectorCodecA3D2IndexBufferLevel2.as | 2 +- .../VectorCodecA3D2IndexBufferLevel3.as | 4 +- .../VectorCodecA3D2VertexAttributesLevel2.as | 2 +- .../VectorCodecA3D2VertexAttributesLevel3.as | 4 +- .../VectorCodecA3D2VertexBufferLevel2.as | 2 +- .../VectorCodecA3D2VertexBufferLevel3.as | 4 +- .../a3d/materials/CodecA3D2CubeMap.as | 56 +-- .../version2/a3d/materials/CodecA3D2Image.as | 16 +- .../version2/a3d/materials/CodecA3D2Map.as | 24 +- .../a3d/materials/CodecA3D2Material.as | 64 +-- .../materials/VectorCodecA3D2CubeMapLevel2.as | 2 +- .../materials/VectorCodecA3D2CubeMapLevel3.as | 4 +- .../materials/VectorCodecA3D2ImageLevel2.as | 2 +- .../materials/VectorCodecA3D2ImageLevel3.as | 4 +- .../a3d/materials/VectorCodecA3D2MapLevel2.as | 2 +- .../a3d/materials/VectorCodecA3D2MapLevel3.as | 4 +- .../VectorCodecA3D2MaterialLevel2.as | 2 +- .../VectorCodecA3D2MaterialLevel3.as | 4 +- .../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 +- .../VectorCodecA3D2AmbientLightLevel2.as | 2 +- .../VectorCodecA3D2AmbientLightLevel3.as | 4 +- .../a3d/objects/VectorCodecA3D2BoxLevel2.as | 2 +- .../a3d/objects/VectorCodecA3D2BoxLevel3.as | 4 +- .../a3d/objects/VectorCodecA3D2DecalLevel2.as | 2 +- .../a3d/objects/VectorCodecA3D2DecalLevel3.as | 4 +- .../VectorCodecA3D2DirectionalLightLevel2.as | 2 +- .../VectorCodecA3D2DirectionalLightLevel3.as | 4 +- ...VectorCodecA3D2JointBindTransformLevel2.as | 2 +- ...VectorCodecA3D2JointBindTransformLevel3.as | 4 +- .../a3d/objects/VectorCodecA3D2JointLevel2.as | 2 +- .../a3d/objects/VectorCodecA3D2JointLevel3.as | 4 +- .../a3d/objects/VectorCodecA3D2MeshLevel2.as | 2 +- .../a3d/objects/VectorCodecA3D2MeshLevel3.as | 4 +- .../objects/VectorCodecA3D2ObjectLevel2.as | 2 +- .../objects/VectorCodecA3D2ObjectLevel3.as | 4 +- .../objects/VectorCodecA3D2OmniLightLevel2.as | 2 +- .../objects/VectorCodecA3D2OmniLightLevel3.as | 4 +- .../a3d/objects/VectorCodecA3D2SkinLevel2.as | 2 +- .../a3d/objects/VectorCodecA3D2SkinLevel3.as | 4 +- .../objects/VectorCodecA3D2SpotLightLevel2.as | 2 +- .../objects/VectorCodecA3D2SpotLightLevel3.as | 4 +- .../objects/VectorCodecA3D2SpriteLevel2.as | 2 +- .../objects/VectorCodecA3D2SpriteLevel3.as | 4 +- .../objects/VectorCodecA3D2SurfaceLevel2.as | 2 +- .../objects/VectorCodecA3D2SurfaceLevel3.as | 4 +- .../objects/VectorCodecA3D2TransformLevel2.as | 2 +- .../objects/VectorCodecA3D2TransformLevel3.as | 4 +- src/alternativa/ClientConfigurator.as | 16 +- .../engine3d/animation/AnimationClip.as | 144 +++--- .../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/animation/keys/NumberTrack.as | 20 +- .../engine3d/animation/keys/Track.as | 38 +- .../engine3d/animation/keys/TransformTrack.as | 16 +- .../engine3d/collisions/EllipsoidCollider.as | 206 ++++----- src/alternativa/engine3d/core/Camera3D.as | 22 +- src/alternativa/engine3d/core/DrawUnit.as | 228 +++++----- src/alternativa/engine3d/core/Light3D.as | 6 +- src/alternativa/engine3d/core/Object3D.as | 16 +- src/alternativa/engine3d/core/Renderer.as | 35 +- src/alternativa/engine3d/core/View.as | 414 +++++++++--------- .../engine3d/core/events/Event3D.as | 30 +- .../engine3d/core/events/MouseEvent3D.as | 6 +- .../engine3d/effects/AGALMiniAssembler.as | 60 +-- src/alternativa/engine3d/effects/Particle.as | 8 +- .../engine3d/effects/ParticleEffect.as | 132 +++--- .../engine3d/effects/ParticlePrototype.as | 82 ++-- .../engine3d/effects/ParticleSystem.as | 68 +-- src/alternativa/engine3d/lights/OmniLight.as | 12 +- src/alternativa/engine3d/lights/SpotLight.as | 102 ++--- src/alternativa/engine3d/loaders/ParserA3D.as | 18 +- .../engine3d/loaders/ParserCollada.as | 30 +- .../engine3d/loaders/ParserMaterial.as | 16 +- .../engine3d/loaders/collada/DaeChannel.as | 46 +- .../engine3d/loaders/collada/DaeController.as | 92 ++-- .../engine3d/loaders/collada/DaeDocument.as | 24 +- .../engine3d/loaders/collada/DaeEffect.as | 24 +- .../engine3d/loaders/collada/DaeElement.as | 14 +- .../engine3d/loaders/collada/DaeGeometry.as | 26 +- .../engine3d/loaders/collada/DaeNode.as | 52 +-- .../engine3d/loaders/collada/DaePrimitive.as | 112 ++--- .../engine3d/loaders/collada/DaeSampler.as | 36 +- .../engine3d/loaders/collada/DaeSource.as | 34 +- .../engine3d/loaders/collada/DaeVertex.as | 16 +- .../engine3d/loaders/collada/DaeVertices.as | 6 +- .../engine3d/materials/A3DUtils.as | 2 +- .../engine3d/materials/EnviromentMaterial.as | 29 +- .../engine3d/materials/FillMaterial.as | 2 +- .../engine3d/materials/StandardMaterial.as | 64 +-- .../engine3d/materials/TextureMaterial.as | 16 +- .../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 | 74 ++-- src/alternativa/engine3d/objects/SkyBox.as | 70 +-- src/alternativa/engine3d/objects/WireFrame.as | 18 +- .../engine3d/resources/Geometry.as | 72 +-- .../engine3d/resources/WireGeometry.as | 66 +-- .../shadows/DirectionalShadowRenderer.as | 88 ++-- .../engine3d/shadows/ShadowRenderer.as | 4 +- .../engine3d/shadows/ShadowsSystem.as | 34 +- .../engine3d/shadows/StaticShadowRenderer.as | 82 ++-- src/alternativa/osgi/OSGi.as | 26 +- .../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 | 144 +++--- src/alternativa/physics/BodyMaterial.as | 4 +- src/alternativa/physics/Contact.as | 16 +- src/alternativa/physics/ContactPoint.as | 10 +- src/alternativa/physics/PhysicsScene.as | 246 +++++------ .../physics/collision/CollisionKdNode.as | 8 +- .../physics/collision/CollisionKdTree.as | 120 ++--- .../physics/collision/CollisionKdTree2D.as | 88 ++-- .../collision/KdTreeCollisionDetector.as | 110 ++--- .../collision/colliders/BoxBoxCollider.as | 70 +-- .../collision/colliders/BoxRectCollider.as | 38 +- .../collision/colliders/BoxSphereCollider.as | 60 +-- .../colliders/BoxTriangleCollider.as | 112 ++--- .../colliders/SphereSphereCollider.as | 2 +- .../collision/primitives/CollisionRect.as | 2 +- .../physics/constraints/Constraint.as | 2 +- src/alternativa/protocol/OptionalMap.as | 36 +- 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 +- src/alternativa/tanks/InitBattleTask.as | 6 +- src/alternativa/tanks/TankTestTask.as | 302 ++++++------- .../tanks/TextureResourceService.as | 46 +- src/alternativa/tanks/config/BlobLibrary.as | 10 +- src/alternativa/tanks/config/Config.as | 47 +- .../tanks/config/TankPartsLibrary.as | 62 +-- .../tanks/config/TextureLibrary.as | 27 +- .../tanks/config/loaders/BlobsLoaderTask.as | 21 +- .../config/loaders/ImageSequenceLoader.as | 10 +- .../tanks/config/loaders/SoundsLibrary.as | 17 +- .../config/loaders/TankPartsBatchLoader.as | 12 +- .../loaders/tankparts/TankHullLoader.as | 2 +- .../loaders/tankparts/TankPartLoader.as | 18 +- .../loaders/tankparts/TankTurretLoader.as | 2 +- src/alternativa/tanks/game/Entity.as | 16 +- src/alternativa/tanks/game/GameKernel.as | 90 ++-- src/alternativa/tanks/game/GameTask.as | 14 +- .../tanks/game/ObjectController.as | 54 +-- src/alternativa/tanks/game/TaskManager.as | 50 ++- .../tanks/game/camera/AxisIndicator.as | 10 +- .../game/camera/FollowCameraController.as | 94 ++-- .../tanks/game/camera/FreeCameraController.as | 48 +- .../game/camera/OrbitCameraController.as | 122 +++--- .../tanks/game/effects/AnimatedPlaneEffect.as | 10 +- .../game/effects/AnimatedSpriteEffect.as | 6 +- src/alternativa/tanks/game/effects/Blinker.as | 30 +- src/alternativa/tanks/game/effects/Fire.as | 2 +- .../game/effects/MovingAnimatedSprite.as | 6 +- .../effects/SimpleWeaponShotSFXComponent.as | 3 +- .../game/effects/debug/FloatingTextEffect.as | 52 +-- .../tanks/game/entities/EventStates.as | 20 +- .../tanks/game/entities/map/A3DMapBuilder.as | 66 +-- .../game/entities/map/A3DMapComponent.as | 40 +- .../tanks/game/entities/map/MapMaterial.as | 2 +- .../game/entities/map/VisibleLightMaterial.as | 2 +- .../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/PhysicsRendererComponent.as | 50 +-- .../graphics/chassis/tracked/TrackAnimator.as | 40 +- .../TrackedChassisGraphicsComponent.as | 154 +++---- .../graphics/materials/GiShadowMaterial.as | 2 +- .../tank/graphics/materials/TankMaterial.as | 62 +-- .../tank/graphics/materials/TankMaterial2.as | 40 +- .../graphics/materials/TracksMaterial2.as | 32 +- .../tank/graphics/materials/TreesMaterial.as | 6 +- .../turret/TurretGraphicsComponent.as | 52 +-- .../entities/tank/parsers/TankHullParser.as | 32 +- .../entities/tank/parsers/TankTurretParser.as | 6 +- .../tank/physics/InterpolationComponent.as | 10 +- .../tracked/legacy/LegacyActivatingState.as | 24 +- .../tracked/legacy/LegacySuspensionRay.as | 92 ++-- .../chassis/tracked/legacy/LegacyTrack.as | 37 +- .../legacy/LegacyTrackedChassisComponent.as | 202 ++++----- .../chassis/tracked/legacy/SuspensionData.as | 12 +- .../physics/turret/TurretPhysicsComponent.as | 120 ++--- .../game/physics/TanksCollisionDetector.as | 192 ++++---- .../UniformGridCollisionDetector.as | 238 +++++----- .../battlemessages/BattleMessagesSubsystem.as | 40 +- .../subsystems/eventsystem/EventSystem.as | 12 +- .../subsystems/inputsystem/InputSystem.as | 124 +++--- .../subsystems/logicsystem/LogicSystem.as | 24 +- .../subsystems/physicssystem/PhysicsSystem.as | 104 ++--- .../rendersystem/DirectionalLightList.as | 20 +- .../game/subsystems/rendersystem/Lights.as | 34 +- .../subsystems/rendersystem/OmniLightList.as | 20 +- .../subsystems/rendersystem/RenderSystem.as | 154 +++---- .../rendersystem/ResourceManager.as | 46 +- .../subsystems/rendersystem/SkyMaterial.as | 16 +- .../subsystems/rendersystem/SpotLightList.as | 20 +- .../subsystems/rendersystem/TextMarker.as | 8 +- .../tanks/game/usertitle/EffectIndicator.as | 52 +-- .../tanks/game/usertitle/ProgressBar.as | 54 +-- .../tanks/game/usertitle/ProgressBarSkin.as | 24 +- .../tanks/game/usertitle/UserTitle.as | 76 ++-- .../usertitle/component/UserTitleComponent.as | 70 +-- 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 +-- .../railgun/MultybodyRaycastFilter.as | 4 +- .../splashhit/debug/DebugSplashDamage.as | 6 +- .../splashhit/debug/DebugSplashDamageAmmo.as | 8 +- .../splashhit/debug/SmokyExplosion.as | 2 +- .../ammunition/splashhit/debug/SmokyShot.as | 8 +- .../ConicAreaWeaponComponent.as | 20 +- .../game/weapons/flamethrower/FlameThrower.as | 18 +- .../flamethrower/FlamethrowerGraphicEffect.as | 50 +-- .../targeting/ConicAreaTargetingSystem.as | 28 +- .../targeting/EnergyTargetingSystem.as | 10 +- .../targeting/GenericTargetingSystem.as | 20 +- .../targeting/RailgunTargetingSystem.as | 12 +- .../thunder/ThunderShotEffectComponent.as | 18 +- .../thunder/effects/ThunderShotEffect.as | 14 +- .../tanks/lightsmanager/LightsManager.as | 12 +- .../tanks/sounds/ChassisSoundCallback.as | 58 +-- .../tanks/sounds/TurretSoundCallback.as | 20 +- src/alternativa/tanks/utils/TARAParser.as | 12 +- 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/alternativa/utils/CircularStringBuffer.as | 37 +- src/commons/A3DMatrix.as | 88 ++-- src/commons/Id.as | 8 +- 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 +- 383 files changed, 6674 insertions(+), 6653 deletions(-) diff --git a/src/Preloader.as b/src/Preloader.as index ce1779d..d0aa5dd 100644 --- a/src/Preloader.as +++ b/src/Preloader.as @@ -20,9 +20,9 @@ package private var area:Shape = new Shape(); - private var §_-1q§:Bitmap = new EmbedPreloader(); + private var name_1q:Bitmap = new EmbedPreloader(); - private var §_-Za§:Bitmap = new EmbedPreloaderA(); + private var name_Za:Bitmap = new EmbedPreloaderA(); private var progress:Bitmap = new EmbedProgress(); @@ -30,15 +30,15 @@ package public var maps:Vector.; - private var §_-dH§:int; + private var name_dH:int; private var counter:int; private var baseURL:String; - private var §_-m§:TextureResource = new BitmapTextureResource(new BitmapData(1,1,false,8355711)); + private var name_m:TextureResource = new BitmapTextureResource(new BitmapData(1,1,false,8355711)); - private var §_-UB§:Number = 0.09803921568627451; + private var name_UB:Number = 0.09803921568627451; public function Preloader() { @@ -46,9 +46,9 @@ package addChild(this.area); this.area.alpha = 1; this.progress.alpha = 1; - this.§_-1q§.alpha = 1; - addChild(this.§_-1q§); - addChild(this.§_-Za§); + this.name_1q.alpha = 1; + addChild(this.name_1q); + addChild(this.name_Za); addChild(this.progress); addEventListener(Event.ADDED_TO_STAGE,this.onAddToStage); addEventListener(Event.REMOVED_FROM_STAGE,this.onRemoveFromStage); @@ -95,9 +95,9 @@ package private function onEnterFrame(param1:Event) : void { - this.area.alpha -= this.§_-UB§; - this.§_-1q§.alpha -= this.§_-UB§; - this.progress.alpha -= this.§_-UB§; + this.area.alpha -= this.name_UB; + this.name_1q.alpha -= this.name_UB; + this.progress.alpha -= this.name_UB; if(this.area.alpha <= 0) { removeEventListener(Event.ENTER_FRAME,this.onEnterFrame); @@ -111,8 +111,8 @@ package private function onEnterFrameSwitch(param1:Event) : void { - this.§_-Za§.alpha -= this.§_-UB§ * 1.5; - if(this.§_-Za§.alpha <= 0) + this.name_Za.alpha -= this.name_UB * 1.5; + if(this.name_Za.alpha <= 0) { removeEventListener(Event.ENTER_FRAME,this.onEnterFrameSwitch); } @@ -121,17 +121,17 @@ package private function onResize(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.name_1q.x = Math.round(stage.stageWidth / 2 - this.name_1q.width / 2); + this.name_1q.y = Math.round(stage.stageHeight / 2 - this.name_1q.height / 2) - 30; + this.name_Za.x = this.name_1q.x; + this.name_Za.y = this.name_1q.y; + this.progress.x = this.name_1q.x + 2; + this.progress.y = this.name_1q.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.name_1q.x,stage.stageHeight); + this.area.graphics.drawRect(this.name_1q.x,0,this.name_1q.width,this.name_1q.y); + this.area.graphics.drawRect(this.name_1q.x + this.name_1q.width,0,stage.stageWidth - this.name_1q.width - this.name_1q.x,stage.stageHeight); + this.area.graphics.drawRect(this.name_1q.x,this.name_1q.y + this.name_1q.height,this.name_1q.width,stage.stageHeight - this.name_1q.height - this.name_1q.y); } } } diff --git a/src/TanksTestingTool.as b/src/TanksTestingTool.as index aa4167e..069074e 100644 --- a/src/TanksTestingTool.as +++ b/src/TanksTestingTool.as @@ -52,11 +52,11 @@ package private var gameKernel:GameKernel; - private var §_-6s§:TanksHudDemo; + private var name_6s:TanksHudDemo; private var stage3D:Stage3D; - private var §_-nZ§:ClientConfigurator; + private var name_nZ:ClientConfigurator; private var preloader:Preloader = new Preloader(); @@ -182,8 +182,8 @@ package private function initClient() : void { new OSGi(); - this.§_-nZ§ = new ClientConfigurator(); - this.§_-nZ§.start(this,new Properties(loaderInfo.parameters),new Vector.(),new ConnectionParameters(null,null,null),new Vector.()); + this.name_nZ = new ClientConfigurator(); + this.name_nZ.start(this,new Properties(loaderInfo.parameters),new Vector.(),new ConnectionParameters(null,null,null),new Vector.()); new ProtocolActivator().start(OSGi.getInstance()); new platform.clients.fp10.libraries.alternativaprotocol.Activator().start(OSGi.getInstance()); new platform.client.a3d.osgi.Activator().start(OSGi.getInstance()); @@ -213,12 +213,12 @@ package private function initHUD() : void { - this.§_-6s§ = new TanksHudDemo(); - stage.addChild(this.§_-6s§); - this.§_-6s§.mouseChildren = true; - this.§_-6s§.mouseEnabled = true; - this.§_-6s§.addEventListener("CLICK_FULL_SCREEN_BUTTON",this.onClickFullScreenButton); - this.§_-6s§.addEventListener("CLICK_NEXT_TANK_BUTTON",this.onClickNextTankButton); + this.name_6s = new TanksHudDemo(); + stage.addChild(this.name_6s); + this.name_6s.mouseChildren = true; + this.name_6s.mouseEnabled = true; + this.name_6s.addEventListener("CLICK_FULL_SCREEN_BUTTON",this.onClickFullScreenButton); + this.name_6s.addEventListener("CLICK_NEXT_TANK_BUTTON",this.onClickNextTankButton); stage.addChild(this.preloader); stage.addEventListener(KeyboardEvent.KEY_DOWN,this.onKeyDown); this.gameKernel.getRenderSystem().getCamera().diagramVerticalMargin = 85; @@ -245,14 +245,14 @@ package private function onClickFullScreenButton(param1:Event) : void { - stage.displayState = this.§_-6s§.isFullScreen ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL; + stage.displayState = this.name_6s.isFullScreen ? StageDisplayState.FULL_SCREEN : StageDisplayState.NORMAL; stage.addEventListener(FullScreenEvent.FULL_SCREEN,this.onFullScreenChange); } private function onFullScreenChange(param1:Event) : void { stage.removeEventListener(FullScreenEvent.FULL_SCREEN,this.onFullScreenChange); - this.§_-6s§.isFullScreen = stage.displayState != StageDisplayState.NORMAL; + this.name_6s.isFullScreen = stage.displayState != StageDisplayState.NORMAL; } private function onClickNextTankButton(param1:Event) : void @@ -288,9 +288,9 @@ package _loc2_ = this.gameKernel.getRenderSystem().getAxisIndicator(); _loc2_.y = stage.stageHeight - _loc2_.size; } - if(this.§_-6s§ != null) + if(this.name_6s != null) { - this.§_-6s§.resize(stage.stageWidth,stage.stageHeight); + this.name_6s.resize(stage.stageWidth,stage.stageHeight); } } } diff --git a/src/_codec/VectorCodecStringLevel2.as b/src/_codec/VectorCodecStringLevel2.as index 2b37af1..b551dbf 100644 --- a/src/_codec/VectorCodecStringLevel2.as +++ b/src/_codec/VectorCodecStringLevel2.as @@ -37,7 +37,7 @@ package _codec var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/VectorCodecStringLevel3.as b/src/_codec/VectorCodecStringLevel3.as index ac59184..df3b490 100644 --- a/src/_codec/VectorCodecStringLevel3.as +++ b/src/_codec/VectorCodecStringLevel3.as @@ -40,14 +40,14 @@ package _codec var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/VectorCodecbyteLevel2.as b/src/_codec/VectorCodecbyteLevel2.as index 4372384..1fe8a46 100644 --- a/src/_codec/VectorCodecbyteLevel2.as +++ b/src/_codec/VectorCodecbyteLevel2.as @@ -38,7 +38,7 @@ package _codec var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/VectorCodecbyteLevel3.as b/src/_codec/VectorCodecbyteLevel3.as index 428e71f..fe90383 100644 --- a/src/_codec/VectorCodecbyteLevel3.as +++ b/src/_codec/VectorCodecbyteLevel3.as @@ -41,14 +41,14 @@ package _codec var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/VectorCodecfloatLevel2.as b/src/_codec/VectorCodecfloatLevel2.as index 518f349..a01501a 100644 --- a/src/_codec/VectorCodecfloatLevel2.as +++ b/src/_codec/VectorCodecfloatLevel2.as @@ -38,7 +38,7 @@ package _codec var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/VectorCodecfloatLevel3.as b/src/_codec/VectorCodecfloatLevel3.as index 47d6599..ae6fb24 100644 --- a/src/_codec/VectorCodecfloatLevel3.as +++ b/src/_codec/VectorCodecfloatLevel3.as @@ -41,14 +41,14 @@ package _codec var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/VectorCodecintLevel2.as b/src/_codec/VectorCodecintLevel2.as index e87726d..b565120 100644 --- a/src/_codec/VectorCodecintLevel2.as +++ b/src/_codec/VectorCodecintLevel2.as @@ -37,7 +37,7 @@ package _codec var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/VectorCodecintLevel3.as b/src/_codec/VectorCodecintLevel3.as index f42345e..6ea28a7 100644 --- a/src/_codec/VectorCodecintLevel3.as +++ b/src/_codec/VectorCodecintLevel3.as @@ -40,14 +40,14 @@ package _codec var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/VectorCodeclongLevel2.as b/src/_codec/VectorCodeclongLevel2.as index 2e2b918..f2aa676 100644 --- a/src/_codec/VectorCodeclongLevel2.as +++ b/src/_codec/VectorCodeclongLevel2.as @@ -38,7 +38,7 @@ package _codec var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/VectorCodeclongLevel3.as b/src/_codec/VectorCodeclongLevel3.as index 9e57e4a..09a0f04 100644 --- a/src/_codec/VectorCodeclongLevel3.as +++ b/src/_codec/VectorCodeclongLevel3.as @@ -41,14 +41,14 @@ package _codec var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/VectorCodecshortLevel2.as b/src/_codec/VectorCodecshortLevel2.as index 1cf3f8e..5c005f4 100644 --- a/src/_codec/VectorCodecshortLevel2.as +++ b/src/_codec/VectorCodecshortLevel2.as @@ -38,7 +38,7 @@ package _codec var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/VectorCodecshortLevel3.as b/src/_codec/VectorCodecshortLevel3.as index 63aa45a..76712b9 100644 --- a/src/_codec/VectorCodecshortLevel3.as +++ b/src/_codec/VectorCodecshortLevel3.as @@ -41,14 +41,14 @@ package _codec var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/commons/CodecA3DMatrix.as b/src/_codec/commons/CodecA3DMatrix.as index 53eebab..2ea5fa4 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 name_Bx:ICodec; - private var §_-Qh§:ICodec; + private var name_Qh:ICodec; - private var §_-ir§:ICodec; + private var name_ir:ICodec; - private var §_-p§:ICodec; + private var name_p:ICodec; - private var §_-Kw§:ICodec; + private var name_Kw:ICodec; - private var §_-PP§:ICodec; + private var name_PP:ICodec; - private var §_-e7§:ICodec; + private var name_e7:ICodec; - private var §_-QE§:ICodec; + private var name_QE:ICodec; - private var §_-SL§:ICodec; + private var name_SL:ICodec; - private var §for §:ICodec; + private var name_for:ICodec; - private var §_-Hb§:ICodec; + private var name_Hb:ICodec; - private var §_-3B§:ICodec; + private var name_3B: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.name_Bx = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_Qh = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_ir = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_p = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_Kw = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_PP = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_e7 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_QE = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_SL = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_for = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_Hb = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_3B = protocol.getCodec(new TypeCodecInfo(Float,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_a:Number = Number(this.§_-Bx§.decode(protocolBuffer) as Number); + var value_a:Number = Number(this.name_Bx.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","a",value_a); - var value_b:Number = Number(this.§_-Qh§.decode(protocolBuffer) as Number); + var value_b:Number = Number(this.name_Qh.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","b",value_b); - var value_c:Number = Number(this.§_-ir§.decode(protocolBuffer) as Number); + var value_c:Number = Number(this.name_ir.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","c",value_c); - var value_d:Number = Number(this.§_-p§.decode(protocolBuffer) as Number); + var value_d:Number = Number(this.name_p.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","d",value_d); - var value_e:Number = Number(this.§_-Kw§.decode(protocolBuffer) as Number); + var value_e:Number = Number(this.name_Kw.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","e",value_e); - var value_f:Number = Number(this.§_-PP§.decode(protocolBuffer) as Number); + var value_f:Number = Number(this.name_PP.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","f",value_f); - var value_g:Number = Number(this.§_-e7§.decode(protocolBuffer) as Number); + var value_g:Number = Number(this.name_e7.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","g",value_g); - var value_h:Number = Number(this.§_-QE§.decode(protocolBuffer) as Number); + var value_h:Number = Number(this.name_QE.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","h",value_h); - var value_i:Number = Number(this.§_-SL§.decode(protocolBuffer) as Number); + var value_i:Number = Number(this.name_SL.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","i",value_i); - var value_j:Number = Number(this.§for §.decode(protocolBuffer) as Number); + var value_j:Number = Number(this.name_for.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","j",value_j); - var value_k:Number = Number(this.§_-Hb§.decode(protocolBuffer) as Number); + var value_k:Number = Number(this.name_Hb.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","k",value_k); - var value_l:Number = Number(this.§_-3B§.decode(protocolBuffer) as Number); + var value_l:Number = Number(this.name_3B.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","commons.A3DMatrix","l",value_l); return new A3DMatrix(value_a,value_b,value_c,value_d,value_e,value_f,value_g,value_h,value_i,value_j,value_k,value_l); } @@ -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.name_Bx.encode(protocolBuffer,struct.a); + this.name_Qh.encode(protocolBuffer,struct.b); + this.name_ir.encode(protocolBuffer,struct.c); + this.name_p.encode(protocolBuffer,struct.d); + this.name_Kw.encode(protocolBuffer,struct.e); + this.name_PP.encode(protocolBuffer,struct.f); + this.name_e7.encode(protocolBuffer,struct.g); + this.name_QE.encode(protocolBuffer,struct.h); + this.name_SL.encode(protocolBuffer,struct.i); + this.name_for.encode(protocolBuffer,struct.j); + this.name_Hb.encode(protocolBuffer,struct.k); + this.name_3B.encode(protocolBuffer,struct.l); } } } diff --git a/src/_codec/commons/CodecId.as b/src/_codec/commons/CodecId.as index 2b1b3d0..b3ecd35 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 name_2o: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.name_2o = protocol.getCodec(new TypeCodecInfo(uint,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:uint = uint(this.§_-2o§.decode(protocolBuffer) as uint); + var value_id:uint = uint(this.name_2o.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.name_2o.encode(protocolBuffer,struct.id); } } } diff --git a/src/_codec/commons/VectorCodecA3DMatrixLevel2.as b/src/_codec/commons/VectorCodecA3DMatrixLevel2.as index d6401a4..6b2cd10 100644 --- a/src/_codec/commons/VectorCodecA3DMatrixLevel2.as +++ b/src/_codec/commons/VectorCodecA3DMatrixLevel2.as @@ -38,7 +38,7 @@ package _codec.commons var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/commons/VectorCodecA3DMatrixLevel3.as b/src/_codec/commons/VectorCodecA3DMatrixLevel3.as index 3e38880..857dafa 100644 --- a/src/_codec/commons/VectorCodecA3DMatrixLevel3.as +++ b/src/_codec/commons/VectorCodecA3DMatrixLevel3.as @@ -41,14 +41,14 @@ package _codec.commons var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/commons/VectorCodecIdLevel2.as b/src/_codec/commons/VectorCodecIdLevel2.as index 732c699..6061bc6 100644 --- a/src/_codec/commons/VectorCodecIdLevel2.as +++ b/src/_codec/commons/VectorCodecIdLevel2.as @@ -38,7 +38,7 @@ package _codec.commons var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/commons/VectorCodecIdLevel3.as b/src/_codec/commons/VectorCodecIdLevel3.as index 8a5f3dc..5818f97 100644 --- a/src/_codec/commons/VectorCodecIdLevel3.as +++ b/src/_codec/commons/VectorCodecIdLevel3.as @@ -41,14 +41,14 @@ package _codec.commons var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/unsigned/VectorCodecintLevel2.as b/src/_codec/unsigned/VectorCodecintLevel2.as index 424c269..a11c1fd 100644 --- a/src/_codec/unsigned/VectorCodecintLevel2.as +++ b/src/_codec/unsigned/VectorCodecintLevel2.as @@ -38,7 +38,7 @@ package _codec.unsigned var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/unsigned/VectorCodecintLevel3.as b/src/_codec/unsigned/VectorCodecintLevel3.as index 5935055..4c513c7 100644 --- a/src/_codec/unsigned/VectorCodecintLevel3.as +++ b/src/_codec/unsigned/VectorCodecintLevel3.as @@ -41,14 +41,14 @@ package _codec.unsigned var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/unsigned/VectorCodeclongLevel2.as b/src/_codec/unsigned/VectorCodeclongLevel2.as index 2e7034b..813b6d5 100644 --- a/src/_codec/unsigned/VectorCodeclongLevel2.as +++ b/src/_codec/unsigned/VectorCodeclongLevel2.as @@ -37,7 +37,7 @@ package _codec.unsigned var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/unsigned/VectorCodeclongLevel3.as b/src/_codec/unsigned/VectorCodeclongLevel3.as index 245d12f..8d84b14 100644 --- a/src/_codec/unsigned/VectorCodeclongLevel3.as +++ b/src/_codec/unsigned/VectorCodeclongLevel3.as @@ -40,14 +40,14 @@ package _codec.unsigned var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/unsigned/VectorCodecshortLevel2.as b/src/_codec/unsigned/VectorCodecshortLevel2.as index d06de36..0028219 100644 --- a/src/_codec/unsigned/VectorCodecshortLevel2.as +++ b/src/_codec/unsigned/VectorCodecshortLevel2.as @@ -38,7 +38,7 @@ package _codec.unsigned var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/unsigned/VectorCodecshortLevel3.as b/src/_codec/unsigned/VectorCodecshortLevel3.as index fcec47b..3f13710 100644 --- a/src/_codec/unsigned/VectorCodecshortLevel3.as +++ b/src/_codec/unsigned/VectorCodecshortLevel3.as @@ -41,14 +41,14 @@ package _codec.unsigned var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/CodecA3D.as b/src/_codec/versions/version1/a3d/CodecA3D.as index cda93e3..a5cc469 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 name_EA:ICodec; - private var §_-PA§:ICodec; + private var name_PA:ICodec; - private var §_-Sd§:ICodec; + private var name_Sd:ICodec; - private var §_-dB§:ICodec; + private var name_dB:ICodec; - private var §_-77§:ICodec; + private var name_77:ICodec; - private var §_-1x§:ICodec; + private var name_1x: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.name_EA = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DBox,false),true,1)); + this.name_PA = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DGeometry,false),true,1)); + this.name_Sd = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DImage,false),true,1)); + this.name_dB = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMap,false),true,1)); + this.name_77 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DMaterial,false),true,1)); + this.name_1x = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DObject,false),true,1)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_boxes:Vector. = this.§_-EA§.decode(protocolBuffer) as Vector.; + var value_boxes:Vector. = this.name_EA.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","boxes",value_boxes); - var value_geometries:Vector. = this.§_-PA§.decode(protocolBuffer) as Vector.; + var value_geometries:Vector. = this.name_PA.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","geometries",value_geometries); - var value_images:Vector. = this.§_-Sd§.decode(protocolBuffer) as Vector.; + var value_images:Vector. = this.name_Sd.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","images",value_images); - var value_maps:Vector. = this.§_-dB§.decode(protocolBuffer) as Vector.; + var value_maps:Vector. = this.name_dB.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","maps",value_maps); - var value_materials:Vector. = this.§_-77§.decode(protocolBuffer) as Vector.; + var value_materials:Vector. = this.name_77.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","materials",value_materials); - var value_objects:Vector. = this.§_-1x§.decode(protocolBuffer) as Vector.; + var value_objects:Vector. = this.name_1x.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.A3D","objects",value_objects); return new A3D(value_boxes,value_geometries,value_images,value_maps,value_materials,value_objects); } @@ -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.name_EA.encode(protocolBuffer,struct.boxes); + this.name_PA.encode(protocolBuffer,struct.geometries); + this.name_Sd.encode(protocolBuffer,struct.images); + this.name_dB.encode(protocolBuffer,struct.maps); + this.name_77.encode(protocolBuffer,struct.materials); + this.name_1x.encode(protocolBuffer,struct.objects); } } } diff --git a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as index fff9b20..10d9175 100644 --- a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as +++ b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as index 2971925..3a60bee 100644 --- a/src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as +++ b/src/_codec/versions/version1/a3d/VectorCodecA3DLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DGeometry.as index 827192f..9ab734c 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 name_2o:ICodec; - private var §_-XF§:ICodec; + private var name_XF:ICodec; - private var §_-U9§:ICodec; + private var name_U9: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.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_XF = protocol.getCodec(new TypeCodecInfo(A3DIndexBuffer,true)); + this.name_U9 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DVertexBuffer,false),true,1)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + var value_id:Id = this.name_2o.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","id",value_id); - var value_indexBuffer:A3DIndexBuffer = this.§_-XF§.decode(protocolBuffer) as A3DIndexBuffer; + var value_indexBuffer:A3DIndexBuffer = this.name_XF.decode(protocolBuffer) as A3DIndexBuffer; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","indexBuffer",value_indexBuffer); - var value_vertexBuffers:Vector. = this.§_-U9§.decode(protocolBuffer) as Vector.; + var value_vertexBuffers:Vector. = this.name_U9.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DGeometry","vertexBuffers",value_vertexBuffers); return new A3DGeometry(value_id,value_indexBuffer,value_vertexBuffers); } @@ -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.name_2o.encode(protocolBuffer,struct.id); + this.name_XF.encode(protocolBuffer,struct.indexBuffer); + this.name_U9.encode(protocolBuffer,struct.vertexBuffers); } } } diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DIndexBuffer.as index bd6b08a..10506c8 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 name_GN:ICodec; - private var §_-mz§:ICodec; + private var name_mz: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.name_GN = protocol.getCodec(new TypeCodecInfo(ByteArray,true)); + this.name_mz = protocol.getCodec(new TypeCodecInfo(int,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray; + var value_byteBuffer:ByteArray = this.name_GN.decode(protocolBuffer) as ByteArray; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DIndexBuffer","byteBuffer",value_byteBuffer); - var value_indexCount:int = int(this.§_-mz§.decode(protocolBuffer) as int); + var value_indexCount:int = int(this.name_mz.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DIndexBuffer","indexCount",value_indexCount); return new A3DIndexBuffer(value_byteBuffer,value_indexCount); } @@ -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.name_GN.encode(protocolBuffer,struct.byteBuffer); + this.name_mz.encode(protocolBuffer,struct.indexCount); } } } diff --git a/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as b/src/_codec/versions/version1/a3d/geometry/CodecA3DVertexBuffer.as index 1c24a2a..eb2116f 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 name_Lj:ICodec; - private var §_-GN§:ICodec; + private var name_GN:ICodec; - private var §_-hc§:ICodec; + private var name_hc: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.name_Lj = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Byte,false),true,1)); + this.name_GN = protocol.getCodec(new TypeCodecInfo(ByteArray,true)); + this.name_hc = protocol.getCodec(new TypeCodecInfo(UShort,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_attributes:Vector. = this.§_-Lj§.decode(protocolBuffer) as Vector.; + var value_attributes:Vector. = this.name_Lj.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","attributes",value_attributes); - var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray; + var value_byteBuffer:ByteArray = this.name_GN.decode(protocolBuffer) as ByteArray; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","byteBuffer",value_byteBuffer); - var value_vertexCount:uint = uint(this.§_-hc§.decode(protocolBuffer) as uint); + var value_vertexCount:uint = uint(this.name_hc.decode(protocolBuffer) as uint); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.geometry.A3DVertexBuffer","vertexCount",value_vertexCount); return new A3DVertexBuffer(value_attributes,value_byteBuffer,value_vertexCount); } @@ -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.name_Lj.encode(protocolBuffer,struct.attributes); + this.name_GN.encode(protocolBuffer,struct.byteBuffer); + this.name_hc.encode(protocolBuffer,struct.vertexCount); } } } diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as index d5b50c2..ed0a0a9 100644 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.geometry var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as index 6e1f5ce..e64e2d3 100644 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DGeometryLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.geometry var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as index c398523..13f8fcf 100644 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.geometry var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as index 6e608ed..9174964 100644 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DIndexBufferLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.geometry var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as index 7766414..d2da6f8 100644 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.geometry var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as index b3d2d96..68aa047 100644 --- a/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as +++ b/src/_codec/versions/version1/a3d/geometry/VectorCodecA3DVertexBufferLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.geometry var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/id/CodecParentId.as b/src/_codec/versions/version1/a3d/id/CodecParentId.as index aab8a9e..38cf626 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 name_2o: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.name_2o = protocol.getCodec(new TypeCodecInfo(uint,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:uint = uint(this.§_-2o§.decode(protocolBuffer) as uint); + var value_id:uint = uint(this.name_2o.decode(protocolBuffer) as uint); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.id.ParentId","id",value_id); return new ParentId(value_id); } @@ -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.name_2o.encode(protocolBuffer,struct.id); } } } diff --git a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as index 6f886a0..794a485 100644 --- a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as +++ b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.id var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as index 1b3f917..6128583 100644 --- a/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as +++ b/src/_codec/versions/version1/a3d/id/VectorCodecParentIdLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.id var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as b/src/_codec/versions/version1/a3d/materials/CodecA3DImage.as index b6145cb..a2e6ecd 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 name_2o:ICodec; - private var §_-aV§:ICodec; + private var name_aV: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.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_aV = protocol.getCodec(new TypeCodecInfo(String,true)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + var value_id:Id = this.name_2o.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","id",value_id); - var value_url:String = this.§_-aV§.decode(protocolBuffer) as String; + var value_url:String = this.name_aV.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DImage","url",value_url); return new A3DImage(value_id,value_url); } @@ -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.name_2o.encode(protocolBuffer,struct.id); + this.name_aV.encode(protocolBuffer,struct.url); } } } diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as b/src/_codec/versions/version1/a3d/materials/CodecA3DMap.as index 6f732cc..09ae04f 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 name_mC:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-2N§:ICodec; + private var name_2N:ICodec; - private var §_-K5§:ICodec; + private var name_K5:ICodec; - private var §_-Q5§:ICodec; + private var name_Q5:ICodec; - private var §_-WH§:ICodec; + private var name_WH:ICodec; - private var §_-kh§:ICodec; + private var name_kh: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.name_mC = protocol.getCodec(new TypeCodecInfo(UShort,false)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_2N = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_K5 = protocol.getCodec(new TypeCodecInfo(Float,true)); + this.name_Q5 = protocol.getCodec(new TypeCodecInfo(Float,true)); + this.name_WH = protocol.getCodec(new TypeCodecInfo(Float,true)); + this.name_kh = protocol.getCodec(new TypeCodecInfo(Float,true)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_channel:uint = uint(this.§_-mC§.decode(protocolBuffer) as uint); + var value_channel:uint = uint(this.name_mC.decode(protocolBuffer) as uint); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","channel",value_channel); - var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + var value_id:Id = this.name_2o.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","id",value_id); - var value_imageId:Id = this.§_-2N§.decode(protocolBuffer) as Id; + var value_imageId:Id = this.name_2N.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","imageId",value_imageId); - var value_uOffset:Number = Number(this.§_-K5§.decode(protocolBuffer) as Number); + var value_uOffset:Number = Number(this.name_K5.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uOffset",value_uOffset); - var value_uScale:Number = Number(this.§_-Q5§.decode(protocolBuffer) as Number); + var value_uScale:Number = Number(this.name_Q5.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","uScale",value_uScale); - var value_vOffset:Number = Number(this.§_-WH§.decode(protocolBuffer) as Number); + var value_vOffset:Number = Number(this.name_WH.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vOffset",value_vOffset); - var value_vScale:Number = Number(this.§_-kh§.decode(protocolBuffer) as Number); + var value_vScale:Number = Number(this.name_kh.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMap","vScale",value_vScale); return new A3DMap(value_channel,value_id,value_imageId,value_uOffset,value_uScale,value_vOffset,value_vScale); } @@ -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.name_mC.encode(protocolBuffer,struct.channel); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_2N.encode(protocolBuffer,struct.imageId); + this.name_K5.encode(protocolBuffer,struct.uOffset); + this.name_Q5.encode(protocolBuffer,struct.uScale); + this.name_WH.encode(protocolBuffer,struct.vOffset); + this.name_kh.encode(protocolBuffer,struct.vScale); } } } diff --git a/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as b/src/_codec/versions/version1/a3d/materials/CodecA3DMaterial.as index 3218136..f1088a0 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 name_9A:ICodec; - private var §_-hw§:ICodec; + private var name_hw:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-Hu§:ICodec; + private var name_Hu:ICodec; - private var §_-GK§:ICodec; + private var name_GK:ICodec; - private var §_-LZ§:ICodec; + private var name_LZ:ICodec; - private var §_-FU§:ICodec; + private var name_FU: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.name_9A = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_hw = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_Hu = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_GK = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_LZ = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_FU = protocol.getCodec(new TypeCodecInfo(Id,true)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_diffuseMapId:Id = this.§_-9A§.decode(protocolBuffer) as Id; + var value_diffuseMapId:Id = this.name_9A.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","diffuseMapId",value_diffuseMapId); - var value_glossinessMapId:Id = this.§_-hw§.decode(protocolBuffer) as Id; + var value_glossinessMapId:Id = this.name_hw.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","glossinessMapId",value_glossinessMapId); - var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + var value_id:Id = this.name_2o.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","id",value_id); - var value_lightMapId:Id = this.§_-Hu§.decode(protocolBuffer) as Id; + var value_lightMapId:Id = this.name_Hu.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","lightMapId",value_lightMapId); - var value_normalMapId:Id = this.§_-GK§.decode(protocolBuffer) as Id; + var value_normalMapId:Id = this.name_GK.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","normalMapId",value_normalMapId); - var value_opacityMapId:Id = this.§_-LZ§.decode(protocolBuffer) as Id; + var value_opacityMapId:Id = this.name_LZ.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","opacityMapId",value_opacityMapId); - var value_specularMapId:Id = this.§_-FU§.decode(protocolBuffer) as Id; + var value_specularMapId:Id = this.name_FU.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.materials.A3DMaterial","specularMapId",value_specularMapId); return new A3DMaterial(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_specularMapId); } @@ -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.name_9A.encode(protocolBuffer,struct.diffuseMapId); + this.name_hw.encode(protocolBuffer,struct.glossinessMapId); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_Hu.encode(protocolBuffer,struct.lightMapId); + this.name_GK.encode(protocolBuffer,struct.normalMapId); + this.name_LZ.encode(protocolBuffer,struct.opacityMapId); + this.name_FU.encode(protocolBuffer,struct.specularMapId); } } } diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as index 305d12b..7346c97 100644 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.materials var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as index d2bc5ba..cf08496 100644 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DImageLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.materials var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as index d086228..dc513cb 100644 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.materials var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as index bc7d2e3..3c0f9d2 100644 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMapLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.materials var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as index 2afa9fb..957b471 100644 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.materials var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as index 0db969d..3918a09 100644 --- a/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as +++ b/src/_codec/versions/version1/a3d/materials/VectorCodecA3DMaterialLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.materials var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as b/src/_codec/versions/version1/a3d/objects/CodecA3DBox.as index 4439966..4509a9d 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 name_pM:ICodec; - private var §_-2o§:ICodec; + private var name_2o: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.name_pM = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),true,1)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_box:Vector. = this.§_-pM§.decode(protocolBuffer) as Vector.; + var value_box:Vector. = this.name_pM.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","box",value_box); - var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + var value_id:Id = this.name_2o.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DBox","id",value_id); return new A3DBox(value_box,value_id); } @@ -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.name_pM.encode(protocolBuffer,struct.box); + this.name_2o.encode(protocolBuffer,struct.id); } } } diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as b/src/_codec/versions/version1/a3d/objects/CodecA3DObject.as index 8a22acc..5f0a154 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 name_Dh:ICodec; - private var §_-e§:ICodec; + private var name_e:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-Qr§:ICodec; + private var name_Qr:ICodec; - private var §_-9u§:ICodec; + private var name_9u:ICodec; - private var §_-h9§:ICodec; + private var name_h9: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.name_Dh = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_e = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(ParentId,true)); + this.name_Qr = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3DSurface,false),true,1)); + this.name_9u = protocol.getCodec(new TypeCodecInfo(A3DTransformation,true)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,true)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_boundBoxId:Id = this.§_-Dh§.decode(protocolBuffer) as Id; + var value_boundBoxId:Id = this.name_Dh.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","boundBoxId",value_boundBoxId); - var value_geometryId:Id = this.§_-e§.decode(protocolBuffer) as Id; + var value_geometryId:Id = this.name_e.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","geometryId",value_geometryId); - var value_id:Id = this.§_-2o§.decode(protocolBuffer) as Id; + var value_id:Id = this.name_2o.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","id",value_id); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","name",value_name); - var value_parentId:ParentId = this.§_-jk§.decode(protocolBuffer) as ParentId; + var value_parentId:ParentId = this.name_jk.decode(protocolBuffer) as ParentId; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","parentId",value_parentId); - var value_surfaces:Vector. = this.§_-Qr§.decode(protocolBuffer) as Vector.; + var value_surfaces:Vector. = this.name_Qr.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","surfaces",value_surfaces); - var value_transformation:A3DTransformation = this.§_-9u§.decode(protocolBuffer) as A3DTransformation; + var value_transformation:A3DTransformation = this.name_9u.decode(protocolBuffer) as A3DTransformation; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","transformation",value_transformation); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DObject","visible",value_visible); return new A3DObject(value_boundBoxId,value_geometryId,value_id,value_name,value_parentId,value_surfaces,value_transformation,value_visible); } @@ -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.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_e.encode(protocolBuffer,struct.geometryId); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_Qr.encode(protocolBuffer,struct.surfaces); + this.name_9u.encode(protocolBuffer,struct.transformation); + this.name_h9.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as b/src/_codec/versions/version1/a3d/objects/CodecA3DSurface.as index 016fcf3..3315299 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 name_AL:ICodec; - private var §_-Av§:ICodec; + private var name_Av:ICodec; - private var §_-pJ§:ICodec; + private var name_pJ: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.name_AL = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_Av = protocol.getCodec(new TypeCodecInfo(Id,true)); + this.name_pJ = protocol.getCodec(new TypeCodecInfo(int,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_indexBegin:int = int(this.§_-AL§.decode(protocolBuffer) as int); + var value_indexBegin:int = int(this.name_AL.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","indexBegin",value_indexBegin); - var value_materialId:Id = this.§_-Av§.decode(protocolBuffer) as Id; + var value_materialId:Id = this.name_Av.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","materialId",value_materialId); - var value_numTriangles:int = int(this.§_-pJ§.decode(protocolBuffer) as int); + var value_numTriangles:int = int(this.name_pJ.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DSurface","numTriangles",value_numTriangles); return new A3DSurface(value_indexBegin,value_materialId,value_numTriangles); } @@ -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.name_AL.encode(protocolBuffer,struct.indexBegin); + this.name_Av.encode(protocolBuffer,struct.materialId); + this.name_pJ.encode(protocolBuffer,struct.numTriangles); } } } diff --git a/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as b/src/_codec/versions/version1/a3d/objects/CodecA3DTransformation.as index 0c2d472..362c3b1 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 name_dG: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.name_dG = protocol.getCodec(new TypeCodecInfo(A3DMatrix,true)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_matrix:A3DMatrix = this.§_-dG§.decode(protocolBuffer) as A3DMatrix; + var value_matrix:A3DMatrix = this.name_dG.decode(protocolBuffer) as A3DMatrix; log.log("codec","struct %1 field %2 value %3","versions.version1.a3d.objects.A3DTransformation","matrix",value_matrix); return new A3DTransformation(value_matrix); } @@ -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.name_dG.encode(protocolBuffer,struct.matrix); } } } diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as index 074a581..c7ac597 100644 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as index c8c966c..deed591 100644 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DBoxLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as index 53f80e9..aa06983 100644 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as index 9493d34..5a4391c 100644 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DObjectLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as index d986375..eacc9d3 100644 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as index 1290cb9..187deeb 100644 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DSurfaceLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as index b21458b..5f5cee8 100644 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version1.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as index b4f6e54..824a99a 100644 --- a/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as +++ b/src/_codec/versions/version1/a3d/objects/VectorCodecA3DTransformationLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version1.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/CodecA3D2.as b/src/_codec/versions/version2/a3d/CodecA3D2.as index da85f4f..2605c79 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 name_8X:ICodec; - private var §_-Fa§:ICodec; + private var name_Fa:ICodec; - private var §_-Aj§:ICodec; + private var name_Aj:ICodec; - private var §_-EA§:ICodec; + private var name_EA:ICodec; - private var §_-lJ§:ICodec; + private var name_lJ:ICodec; - private var §_-9f§:ICodec; + private var name_9f:ICodec; - private var §_-GC§:ICodec; + private var name_GC:ICodec; - private var §_-Sd§:ICodec; + private var name_Sd:ICodec; - private var §_-76§:ICodec; + private var name_76:ICodec; - private var §_-3f§:ICodec; + private var name_3f:ICodec; - private var §_-dB§:ICodec; + private var name_dB:ICodec; - private var §_-77§:ICodec; + private var name_77:ICodec; - private var §_-PJ§:ICodec; + private var name_PJ:ICodec; - private var §_-1x§:ICodec; + private var name_1x:ICodec; - private var §_-aP§:ICodec; + private var name_aP:ICodec; - private var §_-e9§:ICodec; + private var name_e9:ICodec; - private var §_-3y§:ICodec; + private var name_3y:ICodec; - private var §_-E2§:ICodec; + private var name_E2:ICodec; - private var §_-U9§:ICodec; + private var name_U9: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.name_8X = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AmbientLight,false),true,1)); + this.name_Fa = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2AnimationClip,false),true,1)); + this.name_Aj = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Track,false),true,1)); + this.name_EA = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Box,false),true,1)); + this.name_lJ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2CubeMap,false),true,1)); + this.name_9f = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Decal,false),true,1)); + this.name_GC = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2DirectionalLight,false),true,1)); + this.name_Sd = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Image,false),true,1)); + this.name_76 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2IndexBuffer,false),true,1)); + this.name_3f = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Joint,false),true,1)); + this.name_dB = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Map,false),true,1)); + this.name_77 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Material,false),true,1)); + this.name_PJ = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Mesh,false),true,1)); + this.name_1x = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Object,false),true,1)); + this.name_aP = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2OmniLight,false),true,1)); + this.name_e9 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Skin,false),true,1)); + this.name_3y = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2SpotLight,false),true,1)); + this.name_E2 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Sprite,false),true,1)); + this.name_U9 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2VertexBuffer,false),true,1)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_ambientLights:Vector. = this.§_-8X§.decode(protocolBuffer) as Vector.; + var value_ambientLights:Vector. = this.name_8X.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","ambientLights",value_ambientLights); - var value_animationClips:Vector. = this.§_-Fa§.decode(protocolBuffer) as Vector.; + var value_animationClips:Vector. = this.name_Fa.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationClips",value_animationClips); - var value_animationTracks:Vector. = this.§_-Aj§.decode(protocolBuffer) as Vector.; + var value_animationTracks:Vector. = this.name_Aj.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","animationTracks",value_animationTracks); - var value_boxes:Vector. = this.§_-EA§.decode(protocolBuffer) as Vector.; + var value_boxes:Vector. = this.name_EA.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","boxes",value_boxes); - var value_cubeMaps:Vector. = this.§_-lJ§.decode(protocolBuffer) as Vector.; + var value_cubeMaps:Vector. = this.name_lJ.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","cubeMaps",value_cubeMaps); - var value_decals:Vector. = this.§_-9f§.decode(protocolBuffer) as Vector.; + var value_decals:Vector. = this.name_9f.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","decals",value_decals); - var value_directionalLights:Vector. = this.§_-GC§.decode(protocolBuffer) as Vector.; + var value_directionalLights:Vector. = this.name_GC.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","directionalLights",value_directionalLights); - var value_images:Vector. = this.§_-Sd§.decode(protocolBuffer) as Vector.; + var value_images:Vector. = this.name_Sd.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","images",value_images); - var value_indexBuffers:Vector. = this.§_-76§.decode(protocolBuffer) as Vector.; + var value_indexBuffers:Vector. = this.name_76.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","indexBuffers",value_indexBuffers); - var value_joints:Vector. = this.§_-3f§.decode(protocolBuffer) as Vector.; + var value_joints:Vector. = this.name_3f.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","joints",value_joints); - var value_maps:Vector. = this.§_-dB§.decode(protocolBuffer) as Vector.; + var value_maps:Vector. = this.name_dB.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","maps",value_maps); - var value_materials:Vector. = this.§_-77§.decode(protocolBuffer) as Vector.; + var value_materials:Vector. = this.name_77.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","materials",value_materials); - var value_meshes:Vector. = this.§_-PJ§.decode(protocolBuffer) as Vector.; + var value_meshes:Vector. = this.name_PJ.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","meshes",value_meshes); - var value_objects:Vector. = this.§_-1x§.decode(protocolBuffer) as Vector.; + var value_objects:Vector. = this.name_1x.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","objects",value_objects); - var value_omniLights:Vector. = this.§_-aP§.decode(protocolBuffer) as Vector.; + var value_omniLights:Vector. = this.name_aP.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","omniLights",value_omniLights); - var value_skins:Vector. = this.§_-e9§.decode(protocolBuffer) as Vector.; + var value_skins:Vector. = this.name_e9.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","skins",value_skins); - var value_spotLights:Vector. = this.§_-3y§.decode(protocolBuffer) as Vector.; + var value_spotLights:Vector. = this.name_3y.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","spotLights",value_spotLights); - var value_sprites:Vector. = this.§_-E2§.decode(protocolBuffer) as Vector.; + var value_sprites:Vector. = this.name_E2.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","sprites",value_sprites); - var value_vertexBuffers:Vector. = this.§_-U9§.decode(protocolBuffer) as Vector.; + var value_vertexBuffers:Vector. = this.name_U9.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.A3D2","vertexBuffers",value_vertexBuffers); return new A3D2(value_ambientLights,value_animationClips,value_animationTracks,value_boxes,value_cubeMaps,value_decals,value_directionalLights,value_images,value_indexBuffers,value_joints,value_maps,value_materials,value_meshes,value_objects,value_omniLights,value_skins,value_spotLights,value_sprites,value_vertexBuffers); } @@ -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.name_8X.encode(protocolBuffer,struct.ambientLights); + this.name_Fa.encode(protocolBuffer,struct.animationClips); + this.name_Aj.encode(protocolBuffer,struct.animationTracks); + this.name_EA.encode(protocolBuffer,struct.boxes); + this.name_lJ.encode(protocolBuffer,struct.cubeMaps); + this.name_9f.encode(protocolBuffer,struct.decals); + this.name_GC.encode(protocolBuffer,struct.directionalLights); + this.name_Sd.encode(protocolBuffer,struct.images); + this.name_76.encode(protocolBuffer,struct.indexBuffers); + this.name_3f.encode(protocolBuffer,struct.joints); + this.name_dB.encode(protocolBuffer,struct.maps); + this.name_77.encode(protocolBuffer,struct.materials); + this.name_PJ.encode(protocolBuffer,struct.meshes); + this.name_1x.encode(protocolBuffer,struct.objects); + this.name_aP.encode(protocolBuffer,struct.omniLights); + this.name_e9.encode(protocolBuffer,struct.skins); + this.name_3y.encode(protocolBuffer,struct.spotLights); + this.name_E2.encode(protocolBuffer,struct.sprites); + this.name_U9.encode(protocolBuffer,struct.vertexBuffers); } } } diff --git a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as index d6a52a1..26adce6 100644 --- a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as +++ b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as index a9b419b..2266d27 100644 --- a/src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as +++ b/src/_codec/versions/version2/a3d/VectorCodecA3D2Level3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2AnimationClip.as index 09826ab..09804c5 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 name_2o:ICodec; - private var §_-HX§:ICodec; + private var name_HX:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-Td§:ICodec; + private var name_Td:ICodec; - private var §_-Z-§:ICodec; + private var name_Z: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.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_HX = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_Td = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),true,1)); + this.name_Z = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + var value_id:int = int(this.name_2o.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","id",value_id); - var value_loop:Boolean = Boolean(this.§_-HX§.decode(protocolBuffer) as Boolean); + var value_loop:Boolean = Boolean(this.name_HX.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","loop",value_loop); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","name",value_name); - var value_objectIDs:Vector. = this.§_-Td§.decode(protocolBuffer) as Vector.; + var value_objectIDs:Vector. = this.name_Td.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","objectIDs",value_objectIDs); - var value_tracks:Vector. = this.§_-Z-§.decode(protocolBuffer) as Vector.; + var value_tracks:Vector. = this.name_Z.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2AnimationClip","tracks",value_tracks); return new A3D2AnimationClip(value_id,value_loop,value_name,value_objectIDs,value_tracks); } @@ -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.name_2o.encode(protocolBuffer,struct.id); + this.name_HX.encode(protocolBuffer,struct.loop); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_Td.encode(protocolBuffer,struct.objectIDs); + this.name_Z.encode(protocolBuffer,struct.tracks); } } } diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2Keyframe.as index 06edc99..ffa1ce3 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 name_dk:ICodec; - private var §_-S2§:ICodec; + private var name_S2: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.name_dk = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_time:Number = Number(this.§_-dk§.decode(protocolBuffer) as Number); + var value_time:Number = Number(this.name_dk.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Keyframe","time",value_time); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Keyframe","transform",value_transform); return new A3D2Keyframe(value_time,value_transform); } @@ -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.name_dk.encode(protocolBuffer,struct.time); + this.name_S2.encode(protocolBuffer,struct.transform); } } } diff --git a/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as b/src/_codec/versions/version2/a3d/animation/CodecA3D2Track.as index 5818548..c645bdb 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 name_2o:ICodec; - private var §_-Ja§:ICodec; + private var name_Ja:ICodec; - private var §_-Fo§:ICodec; + private var name_Fo: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.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_Ja = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Keyframe,false),false,1)); + this.name_Fo = protocol.getCodec(new TypeCodecInfo(String,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + var value_id:int = int(this.name_2o.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","id",value_id); - var value_keyframes:Vector. = this.§_-Ja§.decode(protocolBuffer) as Vector.; + var value_keyframes:Vector. = this.name_Ja.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","keyframes",value_keyframes); - var value_objectName:String = this.§_-Fo§.decode(protocolBuffer) as String; + var value_objectName:String = this.name_Fo.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.animation.A3D2Track","objectName",value_objectName); return new A3D2Track(value_id,value_keyframes,value_objectName); } @@ -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.name_2o.encode(protocolBuffer,struct.id); + this.name_Ja.encode(protocolBuffer,struct.keyframes); + this.name_Fo.encode(protocolBuffer,struct.objectName); } } } diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as index 7246c4e..0d49810 100644 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.animation var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as index 013d260..e706a19 100644 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2AnimationClipLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.animation var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as index 21050a0..6861b67 100644 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.animation var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as index 7d7fbfe..44fc052 100644 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2KeyframeLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.animation var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as index d0b2e47..2a0b7ca 100644 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.animation var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as index af0199d..79bbbe3 100644 --- a/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as +++ b/src/_codec/versions/version2/a3d/animation/VectorCodecA3D2TrackLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.animation var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as b/src/_codec/versions/version2/a3d/geometry/CodecA3D2IndexBuffer.as index 98abf1e..f0a4b59 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 name_GN:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-mz§:ICodec; + private var name_mz: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.name_GN = protocol.getCodec(new TypeCodecInfo(ByteArray,false)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_mz = protocol.getCodec(new TypeCodecInfo(int,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray; + var value_byteBuffer:ByteArray = this.name_GN.decode(protocolBuffer) as ByteArray; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","byteBuffer",value_byteBuffer); - var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + var value_id:int = int(this.name_2o.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","id",value_id); - var value_indexCount:int = int(this.§_-mz§.decode(protocolBuffer) as int); + var value_indexCount:int = int(this.name_mz.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2IndexBuffer","indexCount",value_indexCount); return new A3D2IndexBuffer(value_byteBuffer,value_id,value_indexCount); } @@ -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.name_GN.encode(protocolBuffer,struct.byteBuffer); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_mz.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..b4aeb59 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 name_Lj:ICodec; - private var §_-GN§:ICodec; + private var name_GN:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-hc§:ICodec; + private var name_hc: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.name_Lj = protocol.getCodec(new CollectionCodecInfo(new EnumCodecInfo(A3D2VertexAttributes,false),false,1)); + this.name_GN = protocol.getCodec(new TypeCodecInfo(ByteArray,false)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_hc = protocol.getCodec(new TypeCodecInfo(UShort,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_attributes:Vector. = this.§_-Lj§.decode(protocolBuffer) as Vector.; + var value_attributes:Vector. = this.name_Lj.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","attributes",value_attributes); - var value_byteBuffer:ByteArray = this.§_-GN§.decode(protocolBuffer) as ByteArray; + var value_byteBuffer:ByteArray = this.name_GN.decode(protocolBuffer) as ByteArray; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","byteBuffer",value_byteBuffer); - var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + var value_id:int = int(this.name_2o.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","id",value_id); - var value_vertexCount:uint = uint(this.§_-hc§.decode(protocolBuffer) as uint); + var value_vertexCount:uint = uint(this.name_hc.decode(protocolBuffer) as uint); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.geometry.A3D2VertexBuffer","vertexCount",value_vertexCount); return new A3D2VertexBuffer(value_attributes,value_byteBuffer,value_id,value_vertexCount); } @@ -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.name_Lj.encode(protocolBuffer,struct.attributes); + this.name_GN.encode(protocolBuffer,struct.byteBuffer); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_hc.encode(protocolBuffer,struct.vertexCount); } } } diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as index 7bae526..4e98f18 100644 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.geometry var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as index 28c4755..9cf55eb 100644 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2IndexBufferLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.geometry var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as index 91b294f..ba33285 100644 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.geometry var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as index 13465fe..20d37b7 100644 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexAttributesLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.geometry var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as index 1b0d9d8..7a2aaf2 100644 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.geometry var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as index 85451a1..c166091 100644 --- a/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as +++ b/src/_codec/versions/version2/a3d/geometry/VectorCodecA3D2VertexBufferLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.geometry var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2CubeMap.as index 0056e7d..9a9dde4 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 name_Yc:ICodec; - private var §_-SV§:ICodec; + private var name_SV:ICodec; - private var §_-Ni§:ICodec; + private var name_Ni:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-nb§:ICodec; + private var name_nb:ICodec; - private var §_-23§:ICodec; + private var name_23:ICodec; - private var §_-TW§:ICodec; + private var name_TW: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.name_Yc = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_SV = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_Ni = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_nb = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_23 = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_TW = protocol.getCodec(new TypeCodecInfo(int,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_backId:int = int(this.§_-Yc§.decode(protocolBuffer) as int); + var value_backId:int = int(this.name_Yc.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","backId",value_backId); - var value_bottomId:int = int(this.§_-SV§.decode(protocolBuffer) as int); + var value_bottomId:int = int(this.name_SV.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","bottomId",value_bottomId); - var value_frontId:int = int(this.§_-Ni§.decode(protocolBuffer) as int); + var value_frontId:int = int(this.name_Ni.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","frontId",value_frontId); - var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + var value_id:int = int(this.name_2o.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","id",value_id); - var value_leftId:int = int(this.§_-nb§.decode(protocolBuffer) as int); + var value_leftId:int = int(this.name_nb.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","leftId",value_leftId); - var value_rightId:int = int(this.§_-23§.decode(protocolBuffer) as int); + var value_rightId:int = int(this.name_23.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","rightId",value_rightId); - var value_topId:int = int(this.§_-TW§.decode(protocolBuffer) as int); + var value_topId:int = int(this.name_TW.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2CubeMap","topId",value_topId); return new A3D2CubeMap(value_backId,value_bottomId,value_frontId,value_id,value_leftId,value_rightId,value_topId); } @@ -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.name_Yc.encode(protocolBuffer,struct.backId); + this.name_SV.encode(protocolBuffer,struct.bottomId); + this.name_Ni.encode(protocolBuffer,struct.frontId); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_nb.encode(protocolBuffer,struct.leftId); + this.name_23.encode(protocolBuffer,struct.rightId); + this.name_TW.encode(protocolBuffer,struct.topId); } } } diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Image.as index 25f4ad4..386ec2f 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 name_2o:ICodec; - private var §_-aV§:ICodec; + private var name_aV: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.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_aV = protocol.getCodec(new TypeCodecInfo(String,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + var value_id:int = int(this.name_2o.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Image","id",value_id); - var value_url:String = this.§_-aV§.decode(protocolBuffer) as String; + var value_url:String = this.name_aV.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Image","url",value_url); return new A3D2Image(value_id,value_url); } @@ -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.name_2o.encode(protocolBuffer,struct.id); + this.name_aV.encode(protocolBuffer,struct.url); } } } diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Map.as index c00f48e..947aa7c 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 name_mC:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-2N§:ICodec; + private var name_2N: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.name_mC = protocol.getCodec(new TypeCodecInfo(UShort,false)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_2N = protocol.getCodec(new TypeCodecInfo(int,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_channel:uint = uint(this.§_-mC§.decode(protocolBuffer) as uint); + var value_channel:uint = uint(this.name_mC.decode(protocolBuffer) as uint); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","channel",value_channel); - var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + var value_id:int = int(this.name_2o.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","id",value_id); - var value_imageId:int = int(this.§_-2N§.decode(protocolBuffer) as int); + var value_imageId:int = int(this.name_2N.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Map","imageId",value_imageId); return new A3D2Map(value_channel,value_id,value_imageId); } @@ -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.name_mC.encode(protocolBuffer,struct.channel); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_2N.encode(protocolBuffer,struct.imageId); } } } diff --git a/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as b/src/_codec/versions/version2/a3d/materials/CodecA3D2Material.as index 81504f0..990eb81 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 name_9A:ICodec; - private var §_-hw§:ICodec; + private var name_hw:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-Hu§:ICodec; + private var name_Hu:ICodec; - private var §_-GK§:ICodec; + private var name_GK:ICodec; - private var §_-LZ§:ICodec; + private var name_LZ:ICodec; - private var §_-bz§:ICodec; + private var name_bz:ICodec; - private var §_-FU§:ICodec; + private var name_FU: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.name_9A = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_hw = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_Hu = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_GK = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_LZ = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_bz = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_FU = protocol.getCodec(new TypeCodecInfo(int,true)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_diffuseMapId:int = int(this.§_-9A§.decode(protocolBuffer) as int); + var value_diffuseMapId:int = int(this.name_9A.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","diffuseMapId",value_diffuseMapId); - var value_glossinessMapId:int = int(this.§_-hw§.decode(protocolBuffer) as int); + var value_glossinessMapId:int = int(this.name_hw.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","glossinessMapId",value_glossinessMapId); - var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + var value_id:int = int(this.name_2o.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","id",value_id); - var value_lightMapId:int = int(this.§_-Hu§.decode(protocolBuffer) as int); + var value_lightMapId:int = int(this.name_Hu.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","lightMapId",value_lightMapId); - var value_normalMapId:int = int(this.§_-GK§.decode(protocolBuffer) as int); + var value_normalMapId:int = int(this.name_GK.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","normalMapId",value_normalMapId); - var value_opacityMapId:int = int(this.§_-LZ§.decode(protocolBuffer) as int); + var value_opacityMapId:int = int(this.name_LZ.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","opacityMapId",value_opacityMapId); - var value_reflectionCubeMapId:int = int(this.§_-bz§.decode(protocolBuffer) as int); + var value_reflectionCubeMapId:int = int(this.name_bz.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","reflectionCubeMapId",value_reflectionCubeMapId); - var value_specularMapId:int = int(this.§_-FU§.decode(protocolBuffer) as int); + var value_specularMapId:int = int(this.name_FU.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.materials.A3D2Material","specularMapId",value_specularMapId); return new A3D2Material(value_diffuseMapId,value_glossinessMapId,value_id,value_lightMapId,value_normalMapId,value_opacityMapId,value_reflectionCubeMapId,value_specularMapId); } @@ -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.name_9A.encode(protocolBuffer,struct.diffuseMapId); + this.name_hw.encode(protocolBuffer,struct.glossinessMapId); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_Hu.encode(protocolBuffer,struct.lightMapId); + this.name_GK.encode(protocolBuffer,struct.normalMapId); + this.name_LZ.encode(protocolBuffer,struct.opacityMapId); + this.name_bz.encode(protocolBuffer,struct.reflectionCubeMapId); + this.name_FU.encode(protocolBuffer,struct.specularMapId); } } } diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as index f9ea1fa..885cc9a 100644 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.materials var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as index 9a4a02f..ae5ecaa 100644 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2CubeMapLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.materials var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as index 197f42f..dac3560 100644 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.materials var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as index b496b29..b14e521 100644 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2ImageLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.materials var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as index 6b5a875..2e95810 100644 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.materials var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as index e81c72f..40a486f 100644 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MapLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.materials var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as index 307c83d..dca0f29 100644 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.materials var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as index 4a9fa33..2adb01b 100644 --- a/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as +++ b/src/_codec/versions/version2/a3d/materials/VectorCodecA3D2MaterialLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.materials var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2AmbientLight.as index 39670fc..bb10c85 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 name_Dh:ICodec; - private var §_-Po§:ICodec; + private var name_Po:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-JX§:ICodec; + private var name_JX:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-S2§:ICodec; + private var name_S2:ICodec; - private var §_-h9§:ICodec; + private var name_h9: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.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_Po = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.name_JX = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + var value_boundBoxId:int = int(this.name_Dh.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","boundBoxId",value_boundBoxId); - var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint); + var value_color:uint = uint(this.name_Po.decode(protocolBuffer) as uint); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","color",value_color); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","id",value_id); - var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number); + var value_intensity:Number = Number(this.name_JX.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","intensity",value_intensity); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","name",value_name); - var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + var value_parentId:Long = this.name_jk.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","parentId",value_parentId); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","transform",value_transform); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2AmbientLight","visible",value_visible); return new A3D2AmbientLight(value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); } @@ -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.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_Po.encode(protocolBuffer,struct.color); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_JX.encode(protocolBuffer,struct.intensity); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_S2.encode(protocolBuffer,struct.transform); + this.name_h9.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Box.as index a6259d1..0d250bd 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 name_pM:ICodec; - private var §_-2o§:ICodec; + private var name_2o: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.name_pM = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Float,false),false,1)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(int,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_box:Vector. = this.§_-pM§.decode(protocolBuffer) as Vector.; + var value_box:Vector. = this.name_pM.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","box",value_box); - var value_id:int = int(this.§_-2o§.decode(protocolBuffer) as int); + var value_id:int = int(this.name_2o.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Box","id",value_id); return new A3D2Box(value_box,value_id); } @@ -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.name_pM.encode(protocolBuffer,struct.box); + this.name_2o.encode(protocolBuffer,struct.id); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Decal.as index 1ffe631..4105ecd 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 name_Dh:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-PO§:ICodec; + private var name_PO:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-Zb§:ICodec; + private var name_Zb:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-Qr§:ICodec; + private var name_Qr:ICodec; - private var §_-S2§:ICodec; + private var name_S2:ICodec; - private var §_-U9§:ICodec; + private var name_U9:ICodec; - private var §_-h9§:ICodec; + private var name_h9: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.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.name_PO = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_Zb = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.name_Qr = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.name_U9 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + var value_boundBoxId:int = int(this.name_Dh.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","boundBoxId",value_boundBoxId); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","id",value_id); - var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int); + var value_indexBufferId:int = int(this.name_PO.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","indexBufferId",value_indexBufferId); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","name",value_name); - var value_offset:Number = Number(this.§_-Zb§.decode(protocolBuffer) as Number); + var value_offset:Number = Number(this.name_Zb.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","offset",value_offset); - var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + var value_parentId:Long = this.name_jk.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","parentId",value_parentId); - var value_surfaces:Vector. = this.§_-Qr§.decode(protocolBuffer) as Vector.; + var value_surfaces:Vector. = this.name_Qr.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","surfaces",value_surfaces); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","transform",value_transform); - var value_vertexBuffers:Vector. = this.§_-U9§.decode(protocolBuffer) as Vector.; + var value_vertexBuffers:Vector. = this.name_U9.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","vertexBuffers",value_vertexBuffers); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Decal","visible",value_visible); return new A3D2Decal(value_boundBoxId,value_id,value_indexBufferId,value_name,value_offset,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible); } @@ -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.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_PO.encode(protocolBuffer,struct.indexBufferId); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_Zb.encode(protocolBuffer,struct.offset); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_Qr.encode(protocolBuffer,struct.surfaces); + this.name_S2.encode(protocolBuffer,struct.transform); + this.name_U9.encode(protocolBuffer,struct.vertexBuffers); + this.name_h9.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2DirectionalLight.as index 1ddae6b..ab10b21 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 name_Dh:ICodec; - private var §_-Po§:ICodec; + private var name_Po:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-JX§:ICodec; + private var name_JX:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-S2§:ICodec; + private var name_S2:ICodec; - private var §_-h9§:ICodec; + private var name_h9: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.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_Po = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.name_JX = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + var value_boundBoxId:int = int(this.name_Dh.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","boundBoxId",value_boundBoxId); - var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint); + var value_color:uint = uint(this.name_Po.decode(protocolBuffer) as uint); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","color",value_color); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","id",value_id); - var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number); + var value_intensity:Number = Number(this.name_JX.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","intensity",value_intensity); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","name",value_name); - var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + var value_parentId:Long = this.name_jk.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","parentId",value_parentId); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","transform",value_transform); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2DirectionalLight","visible",value_visible); return new A3D2DirectionalLight(value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); } @@ -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.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_Po.encode(protocolBuffer,struct.color); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_JX.encode(protocolBuffer,struct.intensity); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_S2.encode(protocolBuffer,struct.transform); + this.name_h9.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Joint.as index 079f912..82daf7c 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 name_Dh:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-S2§:ICodec; + private var name_S2:ICodec; - private var §_-h9§:ICodec; + private var name_h9: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.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + var value_boundBoxId:int = int(this.name_Dh.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","boundBoxId",value_boundBoxId); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","id",value_id); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","name",value_name); - var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + var value_parentId:Long = this.name_jk.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","parentId",value_parentId); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","transform",value_transform); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Joint","visible",value_visible); return new A3D2Joint(value_boundBoxId,value_id,value_name,value_parentId,value_transform,value_visible); } @@ -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.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_S2.encode(protocolBuffer,struct.transform); + this.name_h9.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2JointBindTransform.as index e918da7..7483114 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 name_Ov:ICodec; - private var §_-2o§:ICodec; + private var name_2o: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.name_Ov = protocol.getCodec(new TypeCodecInfo(A3D2Transform,false)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_bindPoseTransform:A3D2Transform = this.§_-Ov§.decode(protocolBuffer) as A3D2Transform; + var value_bindPoseTransform:A3D2Transform = this.name_Ov.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2JointBindTransform","bindPoseTransform",value_bindPoseTransform); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2JointBindTransform","id",value_id); return new A3D2JointBindTransform(value_bindPoseTransform,value_id); } @@ -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.name_Ov.encode(protocolBuffer,struct.bindPoseTransform); + this.name_2o.encode(protocolBuffer,struct.id); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Mesh.as index fd477bd..940740a 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 name_Dh:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-PO§:ICodec; + private var name_PO:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-Qr§:ICodec; + private var name_Qr:ICodec; - private var §_-S2§:ICodec; + private var name_S2:ICodec; - private var §_-U9§:ICodec; + private var name_U9:ICodec; - private var §_-h9§:ICodec; + private var name_h9: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.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.name_PO = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.name_Qr = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.name_U9 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + var value_boundBoxId:int = int(this.name_Dh.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","boundBoxId",value_boundBoxId); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","id",value_id); - var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int); + var value_indexBufferId:int = int(this.name_PO.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","indexBufferId",value_indexBufferId); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","name",value_name); - var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + var value_parentId:Long = this.name_jk.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","parentId",value_parentId); - var value_surfaces:Vector. = this.§_-Qr§.decode(protocolBuffer) as Vector.; + var value_surfaces:Vector. = this.name_Qr.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","surfaces",value_surfaces); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","transform",value_transform); - var value_vertexBuffers:Vector. = this.§_-U9§.decode(protocolBuffer) as Vector.; + var value_vertexBuffers:Vector. = this.name_U9.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","vertexBuffers",value_vertexBuffers); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Mesh","visible",value_visible); return new A3D2Mesh(value_boundBoxId,value_id,value_indexBufferId,value_name,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible); } @@ -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.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_PO.encode(protocolBuffer,struct.indexBufferId); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_Qr.encode(protocolBuffer,struct.surfaces); + this.name_S2.encode(protocolBuffer,struct.transform); + this.name_U9.encode(protocolBuffer,struct.vertexBuffers); + this.name_h9.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Object.as index 2914a4d..2202771 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 name_Dh:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-S2§:ICodec; + private var name_S2:ICodec; - private var §_-h9§:ICodec; + private var name_h9: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.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + var value_boundBoxId:int = int(this.name_Dh.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","boundBoxId",value_boundBoxId); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","id",value_id); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","name",value_name); - var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + var value_parentId:Long = this.name_jk.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","parentId",value_parentId); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","transform",value_transform); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Object","visible",value_visible); return new A3D2Object(value_boundBoxId,value_id,value_name,value_parentId,value_transform,value_visible); } @@ -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.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_S2.encode(protocolBuffer,struct.transform); + this.name_h9.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2OmniLight.as index 69a30ad..54fc1f8 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 name_KK:ICodec; - private var §_-H3§:ICodec; + private var name_H3:ICodec; - private var §_-Dh§:ICodec; + private var name_Dh:ICodec; - private var §_-Po§:ICodec; + private var name_Po:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-JX§:ICodec; + private var name_JX:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-S2§:ICodec; + private var name_S2:ICodec; - private var §_-h9§:ICodec; + private var name_h9: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.name_KK = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_H3 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_Po = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.name_JX = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_attenuationBegin:Number = Number(this.§_-KK§.decode(protocolBuffer) as Number); + var value_attenuationBegin:Number = Number(this.name_KK.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","attenuationBegin",value_attenuationBegin); - var value_attenuationEnd:Number = Number(this.§_-H3§.decode(protocolBuffer) as Number); + var value_attenuationEnd:Number = Number(this.name_H3.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","attenuationEnd",value_attenuationEnd); - var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + var value_boundBoxId:int = int(this.name_Dh.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","boundBoxId",value_boundBoxId); - var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint); + var value_color:uint = uint(this.name_Po.decode(protocolBuffer) as uint); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","color",value_color); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","id",value_id); - var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number); + var value_intensity:Number = Number(this.name_JX.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","intensity",value_intensity); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","name",value_name); - var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + var value_parentId:Long = this.name_jk.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","parentId",value_parentId); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","transform",value_transform); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2OmniLight","visible",value_visible); return new A3D2OmniLight(value_attenuationBegin,value_attenuationEnd,value_boundBoxId,value_color,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); } @@ -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.name_KK.encode(protocolBuffer,struct.attenuationBegin); + this.name_H3.encode(protocolBuffer,struct.attenuationEnd); + this.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_Po.encode(protocolBuffer,struct.color); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_JX.encode(protocolBuffer,struct.intensity); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_S2.encode(protocolBuffer,struct.transform); + this.name_h9.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Skin.as index 387acc3..47eb9f9 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 name_Dh:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-PO§:ICodec; + private var name_PO:ICodec; - private var §_-dR§:ICodec; + private var name_dR:ICodec; - private var §_-3f§:ICodec; + private var name_3f:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-Mx§:ICodec; + private var name_Mx:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-Qr§:ICodec; + private var name_Qr:ICodec; - private var §_-S2§:ICodec; + private var name_S2:ICodec; - private var §_-U9§:ICodec; + private var name_U9:ICodec; - private var §_-h9§:ICodec; + private var name_h9: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.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.name_PO = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_dR = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2JointBindTransform,false),false,1)); + this.name_3f = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(Long,false),false,1)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_Mx = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(UShort,false),false,1)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.name_Qr = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(A3D2Surface,false),false,1)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.name_U9 = protocol.getCodec(new CollectionCodecInfo(new TypeCodecInfo(int,false),false,1)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + var value_boundBoxId:int = int(this.name_Dh.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","boundBoxId",value_boundBoxId); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","id",value_id); - var value_indexBufferId:int = int(this.§_-PO§.decode(protocolBuffer) as int); + var value_indexBufferId:int = int(this.name_PO.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","indexBufferId",value_indexBufferId); - var value_jointBindTransforms:Vector. = this.§_-dR§.decode(protocolBuffer) as Vector.; + var value_jointBindTransforms:Vector. = this.name_dR.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","jointBindTransforms",value_jointBindTransforms); - var value_joints:Vector. = this.§_-3f§.decode(protocolBuffer) as Vector.; + var value_joints:Vector. = this.name_3f.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","joints",value_joints); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","name",value_name); - var value_numJoints:Vector. = this.§_-Mx§.decode(protocolBuffer) as Vector.; + var value_numJoints:Vector. = this.name_Mx.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","numJoints",value_numJoints); - var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + var value_parentId:Long = this.name_jk.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","parentId",value_parentId); - var value_surfaces:Vector. = this.§_-Qr§.decode(protocolBuffer) as Vector.; + var value_surfaces:Vector. = this.name_Qr.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","surfaces",value_surfaces); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","transform",value_transform); - var value_vertexBuffers:Vector. = this.§_-U9§.decode(protocolBuffer) as Vector.; + var value_vertexBuffers:Vector. = this.name_U9.decode(protocolBuffer) as Vector.; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","vertexBuffers",value_vertexBuffers); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Skin","visible",value_visible); return new A3D2Skin(value_boundBoxId,value_id,value_indexBufferId,value_jointBindTransforms,value_joints,value_name,value_numJoints,value_parentId,value_surfaces,value_transform,value_vertexBuffers,value_visible); } @@ -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.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_PO.encode(protocolBuffer,struct.indexBufferId); + this.name_dR.encode(protocolBuffer,struct.jointBindTransforms); + this.name_3f.encode(protocolBuffer,struct.joints); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_Mx.encode(protocolBuffer,struct.numJoints); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_Qr.encode(protocolBuffer,struct.surfaces); + this.name_S2.encode(protocolBuffer,struct.transform); + this.name_U9.encode(protocolBuffer,struct.vertexBuffers); + this.name_h9.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2SpotLight.as index 5bba2f4..6c29b9c 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 name_KK:ICodec; - private var §_-H3§:ICodec; + private var name_H3:ICodec; - private var §_-Dh§:ICodec; + private var name_Dh:ICodec; - private var §_-Po§:ICodec; + private var name_Po:ICodec; - private var §_-GX§:ICodec; + private var name_GX:ICodec; - private var §_-YW§:ICodec; + private var name_YW:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-JX§:ICodec; + private var name_JX:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-S2§:ICodec; + private var name_S2:ICodec; - private var §_-h9§:ICodec; + private var name_h9: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.name_KK = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_H3 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_Po = protocol.getCodec(new TypeCodecInfo(uint,false)); + this.name_GX = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_YW = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.name_JX = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_attenuationBegin:Number = Number(this.§_-KK§.decode(protocolBuffer) as Number); + var value_attenuationBegin:Number = Number(this.name_KK.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","attenuationBegin",value_attenuationBegin); - var value_attenuationEnd:Number = Number(this.§_-H3§.decode(protocolBuffer) as Number); + var value_attenuationEnd:Number = Number(this.name_H3.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","attenuationEnd",value_attenuationEnd); - var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + var value_boundBoxId:int = int(this.name_Dh.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","boundBoxId",value_boundBoxId); - var value_color:uint = uint(this.§_-Po§.decode(protocolBuffer) as uint); + var value_color:uint = uint(this.name_Po.decode(protocolBuffer) as uint); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","color",value_color); - var value_falloff:Number = Number(this.§_-GX§.decode(protocolBuffer) as Number); + var value_falloff:Number = Number(this.name_GX.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","falloff",value_falloff); - var value_hotspot:Number = Number(this.§_-YW§.decode(protocolBuffer) as Number); + var value_hotspot:Number = Number(this.name_YW.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","hotspot",value_hotspot); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","id",value_id); - var value_intensity:Number = Number(this.§_-JX§.decode(protocolBuffer) as Number); + var value_intensity:Number = Number(this.name_JX.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","intensity",value_intensity); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","name",value_name); - var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + var value_parentId:Long = this.name_jk.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","parentId",value_parentId); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","transform",value_transform); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2SpotLight","visible",value_visible); return new A3D2SpotLight(value_attenuationBegin,value_attenuationEnd,value_boundBoxId,value_color,value_falloff,value_hotspot,value_id,value_intensity,value_name,value_parentId,value_transform,value_visible); } @@ -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.name_KK.encode(protocolBuffer,struct.attenuationBegin); + this.name_H3.encode(protocolBuffer,struct.attenuationEnd); + this.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_Po.encode(protocolBuffer,struct.color); + this.name_GX.encode(protocolBuffer,struct.falloff); + this.name_YW.encode(protocolBuffer,struct.hotspot); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_JX.encode(protocolBuffer,struct.intensity); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_S2.encode(protocolBuffer,struct.transform); + this.name_h9.encode(protocolBuffer,struct.visible); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Sprite.as index 943204a..cec9bd3 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 name_XZ:ICodec; - private var §_-Dh§:ICodec; + private var name_Dh:ICodec; - private var §_-X§:ICodec; + private var name_X:ICodec; - private var §_-2o§:ICodec; + private var name_2o:ICodec; - private var §_-Av§:ICodec; + private var name_Av:ICodec; - private var §_-XW§:ICodec; + private var name_XW:ICodec; - private var §_-Pk§:ICodec; + private var name_Pk:ICodec; - private var §_-j1§:ICodec; + private var name_j1:ICodec; - private var §_-jk§:ICodec; + private var name_jk:ICodec; - private var §_-Yz§:ICodec; + private var name_Yz:ICodec; - private var §_-SJ§:ICodec; + private var name_SJ:ICodec; - private var §_-S2§:ICodec; + private var name_S2:ICodec; - private var §_-h9§:ICodec; + private var name_h9:ICodec; - private var §_-pD§:ICodec; + private var name_pD: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.name_XZ = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.name_Dh = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_X = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_2o = protocol.getCodec(new TypeCodecInfo(Long,false)); + this.name_Av = protocol.getCodec(new TypeCodecInfo(Id,false)); + this.name_XW = protocol.getCodec(new TypeCodecInfo(String,true)); + this.name_Pk = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_j1 = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_jk = protocol.getCodec(new TypeCodecInfo(Long,true)); + this.name_Yz = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.name_SJ = protocol.getCodec(new TypeCodecInfo(Float,false)); + this.name_S2 = protocol.getCodec(new TypeCodecInfo(A3D2Transform,true)); + this.name_h9 = protocol.getCodec(new TypeCodecInfo(Boolean,false)); + this.name_pD = protocol.getCodec(new TypeCodecInfo(Float,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_alwaysOnTop:Boolean = Boolean(this.§_-XZ§.decode(protocolBuffer) as Boolean); + var value_alwaysOnTop:Boolean = Boolean(this.name_XZ.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","alwaysOnTop",value_alwaysOnTop); - var value_boundBoxId:int = int(this.§_-Dh§.decode(protocolBuffer) as int); + var value_boundBoxId:int = int(this.name_Dh.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","boundBoxId",value_boundBoxId); - var value_height:Number = Number(this.§_-X§.decode(protocolBuffer) as Number); + var value_height:Number = Number(this.name_X.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","height",value_height); - var value_id:Long = this.§_-2o§.decode(protocolBuffer) as Long; + var value_id:Long = this.name_2o.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","id",value_id); - var value_materialId:Id = this.§_-Av§.decode(protocolBuffer) as Id; + var value_materialId:Id = this.name_Av.decode(protocolBuffer) as Id; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","materialId",value_materialId); - var value_name:String = this.§_-XW§.decode(protocolBuffer) as String; + var value_name:String = this.name_XW.decode(protocolBuffer) as String; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","name",value_name); - var value_originX:Number = Number(this.§_-Pk§.decode(protocolBuffer) as Number); + var value_originX:Number = Number(this.name_Pk.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","originX",value_originX); - var value_originY:Number = Number(this.§_-j1§.decode(protocolBuffer) as Number); + var value_originY:Number = Number(this.name_j1.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","originY",value_originY); - var value_parentId:Long = this.§_-jk§.decode(protocolBuffer) as Long; + var value_parentId:Long = this.name_jk.decode(protocolBuffer) as Long; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","parentId",value_parentId); - var value_perspectiveScale:Boolean = Boolean(this.§_-Yz§.decode(protocolBuffer) as Boolean); + var value_perspectiveScale:Boolean = Boolean(this.name_Yz.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","perspectiveScale",value_perspectiveScale); - var value_rotation:Number = Number(this.§_-SJ§.decode(protocolBuffer) as Number); + var value_rotation:Number = Number(this.name_SJ.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","rotation",value_rotation); - var value_transform:A3D2Transform = this.§_-S2§.decode(protocolBuffer) as A3D2Transform; + var value_transform:A3D2Transform = this.name_S2.decode(protocolBuffer) as A3D2Transform; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","transform",value_transform); - var value_visible:Boolean = Boolean(this.§_-h9§.decode(protocolBuffer) as Boolean); + var value_visible:Boolean = Boolean(this.name_h9.decode(protocolBuffer) as Boolean); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","visible",value_visible); - var value_width:Number = Number(this.§_-pD§.decode(protocolBuffer) as Number); + var value_width:Number = Number(this.name_pD.decode(protocolBuffer) as Number); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Sprite","width",value_width); return new A3D2Sprite(value_alwaysOnTop,value_boundBoxId,value_height,value_id,value_materialId,value_name,value_originX,value_originY,value_parentId,value_perspectiveScale,value_rotation,value_transform,value_visible,value_width); } @@ -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.name_XZ.encode(protocolBuffer,struct.alwaysOnTop); + this.name_Dh.encode(protocolBuffer,struct.boundBoxId); + this.name_X.encode(protocolBuffer,struct.height); + this.name_2o.encode(protocolBuffer,struct.id); + this.name_Av.encode(protocolBuffer,struct.materialId); + this.name_XW.encode(protocolBuffer,struct.name); + this.name_Pk.encode(protocolBuffer,struct.originX); + this.name_j1.encode(protocolBuffer,struct.originY); + this.name_jk.encode(protocolBuffer,struct.parentId); + this.name_Yz.encode(protocolBuffer,struct.perspectiveScale); + this.name_SJ.encode(protocolBuffer,struct.rotation); + this.name_S2.encode(protocolBuffer,struct.transform); + this.name_h9.encode(protocolBuffer,struct.visible); + this.name_pD.encode(protocolBuffer,struct.width); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Surface.as index 8b2b989..09ae619 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 name_AL:ICodec; - private var §_-Av§:ICodec; + private var name_Av:ICodec; - private var §_-pJ§:ICodec; + private var name_pJ: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.name_AL = protocol.getCodec(new TypeCodecInfo(int,false)); + this.name_Av = protocol.getCodec(new TypeCodecInfo(int,true)); + this.name_pJ = protocol.getCodec(new TypeCodecInfo(int,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_indexBegin:int = int(this.§_-AL§.decode(protocolBuffer) as int); + var value_indexBegin:int = int(this.name_AL.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","indexBegin",value_indexBegin); - var value_materialId:int = int(this.§_-Av§.decode(protocolBuffer) as int); + var value_materialId:int = int(this.name_Av.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","materialId",value_materialId); - var value_numTriangles:int = int(this.§_-pJ§.decode(protocolBuffer) as int); + var value_numTriangles:int = int(this.name_pJ.decode(protocolBuffer) as int); log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Surface","numTriangles",value_numTriangles); return new A3D2Surface(value_indexBegin,value_materialId,value_numTriangles); } @@ -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.name_AL.encode(protocolBuffer,struct.indexBegin); + this.name_Av.encode(protocolBuffer,struct.materialId); + this.name_pJ.encode(protocolBuffer,struct.numTriangles); } } } diff --git a/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as b/src/_codec/versions/version2/a3d/objects/CodecA3D2Transform.as index 4748a3a..42ec1e7 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 name_dG: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.name_dG = protocol.getCodec(new TypeCodecInfo(A3DMatrix,false)); } public function decode(protocolBuffer:ProtocolBuffer) : Object { log = IClientLog(OSGi.getInstance().getService(IClientLog)); - var value_matrix:A3DMatrix = this.§_-dG§.decode(protocolBuffer) as A3DMatrix; + var value_matrix:A3DMatrix = this.name_dG.decode(protocolBuffer) as A3DMatrix; log.log("codec","struct %1 field %2 value %3","versions.version2.a3d.objects.A3D2Transform","matrix",value_matrix); return new A3D2Transform(value_matrix); } @@ -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.name_dG.encode(protocolBuffer,struct.matrix); } } } diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as index 584a20e..7345042 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as index dd0c094..4b25323 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2AmbientLightLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as index 262ca23..d82f7b8 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as index 8c783d2..017eea8 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2BoxLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as index 4e7c754..da356f8 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as index 5ed602c..390f006 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DecalLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as index 675f957..a04f1a9 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as index d6fe234..529fdd3 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2DirectionalLightLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as index c6d0837..d50c9f8 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as index 1c17218..b19a527 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointBindTransformLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as index fedf812..d11c9d0 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as index b08a55d..1f07b2b 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2JointLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as index ae36a59..8486213 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as index c929261..4f039a6 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2MeshLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as index df5fa86..c4865a9 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as index b9f146a..9a7ed6a 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2ObjectLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as index 4b44965..65ed0c8 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as index af65c68..5614c69 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2OmniLightLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as index d3f9789..b56a91a 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as index 4f2bf13..01eb5e9 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SkinLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as index 3f4a7c5..8b2b7af 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as index d80dd7d..5f121a0 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpotLightLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as index a5b57b1..8113983 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as index 5d24ce1..dbacd00 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SpriteLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as index f635f10..821207f 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as index e454d02..c5e77fd 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2SurfaceLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as index 23d5b6c..73ff7c8 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel2.as @@ -38,7 +38,7 @@ package _codec.versions.version2.a3d.objects var result:Vector.> = new Vector.>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.(length2,true); diff --git a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as index 2fe30c2..5ed6ee2 100644 --- a/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as +++ b/src/_codec/versions/version2/a3d/objects/VectorCodecA3D2TransformLevel3.as @@ -41,14 +41,14 @@ package _codec.versions.version2.a3d.objects var result:Vector.>> = new Vector.>>(length1,true); for(var i1:int = 0; i1 < length1; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length2 = LengthCodecHelper.decodeLength(protocolBuffer); items2 = new Vector.>(length2,true); result[i1] = items2; for(i2 = 0; i2 < length2; ) { - if(!protocolBuffer.optionalMap.OptionalMap()) + if(!protocolBuffer.optionalMap.get()) { length3 = LengthCodecHelper.decodeLength(protocolBuffer); items3 = new Vector.(length3,true); diff --git a/src/alternativa/ClientConfigurator.as b/src/alternativa/ClientConfigurator.as index 13b7c12..e937d89 100644 --- a/src/alternativa/ClientConfigurator.as +++ b/src/alternativa/ClientConfigurator.as @@ -36,9 +36,9 @@ package alternativa private var console:Console; - private var §_-UU§:KeyboardShortcut; + private var name_UU:KeyboardShortcut; - private var §_-jQ§:KeyboardShortcut; + private var name_jQ:KeyboardShortcut; public function ClientConfigurator() { @@ -143,8 +143,8 @@ package alternativa { console.executeCommand("con_alpha " + params["alpha"]); } - this.§_-UU§ = this.parseShortcut(params["hsw"],Keyboard.LEFT,false,true,true); - this.§_-jQ§ = this.parseShortcut(params["vsw"],Keyboard.UP,false,true,true); + this.name_UU = this.parseShortcut(params["hsw"],Keyboard.LEFT,false,true,true); + this.name_jQ = this.parseShortcut(params["vsw"],Keyboard.UP,false,true,true); stage.addEventListener(KeyboardEvent.KEY_DOWN,this.onKey,true); } @@ -161,8 +161,8 @@ package alternativa { switch(e.keyCode) { - case this.§_-UU§.keyCode: - if(this.§_-UU§.altKey == e.altKey && this.§_-UU§.shiftKey == e.shiftKey && this.§_-UU§.ctrlKey == e.ctrlKey) + case this.name_UU.keyCode: + if(this.name_UU.altKey == e.altKey && this.name_UU.shiftKey == e.shiftKey && this.name_UU.ctrlKey == e.ctrlKey) { if(this.console.horizontalAlignment == 1) { @@ -172,8 +172,8 @@ package alternativa this.console.horizontalAlignment = 1; } break; - case this.§_-jQ§.keyCode: - if(this.§_-jQ§.altKey == e.altKey && this.§_-jQ§.shiftKey == e.shiftKey && this.§_-jQ§.ctrlKey == e.ctrlKey) + case this.name_jQ.keyCode: + if(this.name_jQ.altKey == e.altKey && this.name_jQ.shiftKey == e.shiftKey && this.name_jQ.ctrlKey == e.ctrlKey) { if(this.console.vericalAlignment == 1) { diff --git a/src/alternativa/engine3d/animation/AnimationClip.as b/src/alternativa/engine3d/animation/AnimationClip.as index 1578d6b..7f5d442 100644 --- a/src/alternativa/engine3d/animation/AnimationClip.as +++ b/src/alternativa/engine3d/animation/AnimationClip.as @@ -8,7 +8,7 @@ package alternativa.engine3d.animation public class AnimationClip extends AnimationNode { - alternativa3d var §_-Kq§:Array; + alternativa3d var name_Kq:Array; public var name:String; @@ -18,13 +18,13 @@ package alternativa.engine3d.animation public var animated:Boolean = true; - private var §_-qC§:Number = 0; + private var name_qC:Number = 0; - private var §_-Iv§:int = 0; + private var name_Iv:int = 0; - private var §_-cT§:Vector. = new Vector.(); + private var name_cT:Vector. = new Vector.(); - private var §_-Ci§:AnimationNotify; + private var name_Ci:AnimationNotify; public function AnimationClip(name:String = null) { @@ -34,30 +34,30 @@ package alternativa.engine3d.animation public function get objects() : Array { - return this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq); + return this.name_Kq == null ? null : [].concat(this.name_Kq); } public function set objects(value:Array) : void { - this.updateObjects(this.alternativa3d::_-Kq,alternativa3d::controller,value,alternativa3d::controller); - this.alternativa3d::_-Kq = value == null ? null : [].concat(value); + this.updateObjects(this.name_Kq,alternativa3d::controller,value,alternativa3d::controller); + this.name_Kq = value == null ? null : [].concat(value); } override alternativa3d function setController(value:AnimationController) : void { - this.updateObjects(this.alternativa3d::_-Kq,alternativa3d::controller,this.alternativa3d::_-Kq,value); + this.updateObjects(this.name_Kq,alternativa3d::controller,this.name_Kq,value); this.alternativa3d::controller = value; } private function addObject(object:Object) : void { - if(this.alternativa3d::_-Kq == null) + if(this.name_Kq == null) { - this.alternativa3d::_-Kq = [object]; + this.name_Kq = [object]; } else { - this.alternativa3d::_-Kq.push(object); + this.name_Kq.push(object); } if(alternativa3d::controller != null) { @@ -71,7 +71,7 @@ package alternativa.engine3d.animation var count:int = 0; if(oldController != null && oldObjects != null) { - for(i = 0,count = int(this.alternativa3d::_-Kq.length); i < count; i++) + for(i = 0,count = int(this.name_Kq.length); i < count; i++) { oldController.alternativa3d::removeObject(oldObjects[i]); } @@ -89,9 +89,9 @@ package alternativa.engine3d.animation { var track:Track = null; var len:Number = NaN; - for(var i:int = 0; i < this.§_-Iv§; ) + for(var i:int = 0; i < this.name_Iv; ) { - track = this.§_-cT§[i]; + track = this.name_cT[i]; len = track.length; if(len > this.length) { @@ -107,8 +107,8 @@ package alternativa.engine3d.animation { throw new Error("Track can not be null"); } - var _loc2_:* = this.§_-Iv§++; - this.§_-cT§[_loc2_] = track; + var _loc2_:* = this.name_Iv++; + this.name_cT[_loc2_] = track; if(track.length > this.length) { this.length = track.length; @@ -119,23 +119,23 @@ package alternativa.engine3d.animation public function removeTrack(track:Track) : Track { var t:Track = null; - var index:int = int(this.§_-cT§.indexOf(track)); + var index:int = int(this.name_cT.indexOf(track)); if(index < 0) { throw new ArgumentError("Track not found"); } - --this.§_-Iv§; - for(var j:int = index + 1; index < this.§_-Iv§; ) + --this.name_Iv; + for(var j:int = index + 1; index < this.name_Iv; ) { - this.§_-cT§[index] = this.§_-cT§[j]; + this.name_cT[index] = this.name_cT[j]; index++; j++; } - this.§_-cT§.length = this.§_-Iv§; + this.name_cT.length = this.name_Iv; this.length = 0; - for(var i:int = 0; i < this.§_-Iv§; ) + for(var i:int = 0; i < this.name_Iv; ) { - t = this.§_-cT§[i]; + t = this.name_cT[i]; if(t.length > this.length) { this.length = t.length; @@ -147,12 +147,12 @@ package alternativa.engine3d.animation public function getTrackAt(index:int) : Track { - return this.§_-cT§[index]; + return this.name_cT[index]; } public function get numTracks() : int { - return this.§_-Iv§; + return this.name_Iv; } override alternativa3d function update(interval:Number, weight:Number) : void @@ -160,51 +160,51 @@ package alternativa.engine3d.animation var i:int = 0; var track:Track = null; var state:AnimationState = null; - var oldTime:Number = this.§_-qC§; + var oldTime:Number = this.name_qC; if(this.animated) { - this.§_-qC§ += interval * speed; + this.name_qC += interval * speed; if(this.loop) { - if(this.§_-qC§ < 0) + if(this.name_qC < 0) { - this.§_-qC§ = 0; + this.name_qC = 0; } - else if(this.§_-qC§ >= this.length) + else if(this.name_qC >= this.length) { this.alternativa3d::collectNotifiers(oldTime,this.length); - this.§_-qC§ = this.length <= 0 ? 0 : this.§_-qC§ % this.length; - this.alternativa3d::collectNotifiers(0,this.§_-qC§); + this.name_qC = this.length <= 0 ? 0 : this.name_qC % this.length; + this.alternativa3d::collectNotifiers(0,this.name_qC); } else { - this.alternativa3d::collectNotifiers(oldTime,this.§_-qC§); + this.alternativa3d::collectNotifiers(oldTime,this.name_qC); } } else { - if(this.§_-qC§ < 0) + if(this.name_qC < 0) { - this.§_-qC§ = 0; + this.name_qC = 0; } - else if(this.§_-qC§ >= this.length) + else if(this.name_qC >= this.length) { - this.§_-qC§ = this.length; + this.name_qC = this.length; } - this.alternativa3d::collectNotifiers(oldTime,this.§_-qC§); + this.alternativa3d::collectNotifiers(oldTime,this.name_qC); } } if(weight > 0) { - for(i = 0; i < this.§_-Iv§; ) + for(i = 0; i < this.name_Iv; ) { - track = this.§_-cT§[i]; + track = this.name_cT[i]; if(track.object != null) { state = alternativa3d::controller.alternativa3d::getState(track.object); if(state != null) { - track.alternativa3d::blend(this.§_-qC§,weight,state); + track.alternativa3d::blend(this.name_qC,weight,state); } } i++; @@ -214,22 +214,22 @@ package alternativa.engine3d.animation public function get time() : Number { - return this.§_-qC§; + return this.name_qC; } public function set time(value:Number) : void { - this.§_-qC§ = value; + this.name_qC = value; } public function get normalizedTime() : Number { - return this.length == 0 ? 0 : this.§_-qC§ / this.length; + return this.length == 0 ? 0 : this.name_qC / this.length; } public function set normalizedTime(value:Number) : void { - this.§_-qC§ = value * this.length; + this.name_qC = value * this.length; } private function getNumChildren(object:Object) : int @@ -253,7 +253,7 @@ package alternativa.engine3d.animation private function addChildren(object:Object) : void { var child:Object = null; - for(var i:int = 0,var numChildren:int = this.getNumChildren(object); i < numChildren; i++) + for(var i:int = 0, numChildren:int = this.getNumChildren(object); i < numChildren; i++) { child = this.getChildAt(object,i); this.addObject(child); @@ -263,8 +263,8 @@ package alternativa.engine3d.animation public function attach(object:Object, includeDescendants:Boolean) : void { - this.updateObjects(this.alternativa3d::_-Kq,alternativa3d::controller,null,alternativa3d::controller); - this.alternativa3d::_-Kq = null; + this.updateObjects(this.name_Kq,alternativa3d::controller,null,alternativa3d::controller); + this.name_Kq = null; this.addObject(object); if(includeDescendants) { @@ -274,16 +274,16 @@ package alternativa.engine3d.animation alternativa3d function collectNotifiers(start:Number, end:Number) : void { - for(var notify:AnimationNotify = this.§_-Ci§; notify != null; ) + for(var notify:AnimationNotify = this.name_Ci; notify != null; ) { - if(notify.alternativa3d::_-qC > start) + if(notify.name_qC > start) { - if(notify.alternativa3d::_-qC > end) + if(notify.name_qC > end) { notify = notify.alternativa3d::next; continue; } - notify.alternativa3d::_-XY = alternativa3d::controller.alternativa3d::nearestNotifyers; + notify.name_XY = alternativa3d::controller.alternativa3d::nearestNotifyers; alternativa3d::controller.alternativa3d::nearestNotifyers = notify; } notify = notify.alternativa3d::next; @@ -295,20 +295,20 @@ package alternativa.engine3d.animation var _loc4_:AnimationNotify = null; time = time <= 0 ? 0 : (time >= this.length ? this.length : time); var notify:AnimationNotify = new AnimationNotify(name); - notify.alternativa3d::_-qC = time; - if(this.§_-Ci§ == null) + notify.name_qC = time; + if(this.name_Ci == null) { - this.§_-Ci§ = notify; + this.name_Ci = notify; return notify; } - if(this.§_-Ci§.alternativa3d::_-qC > time) + if(this.name_Ci.name_qC > time) { - notify.alternativa3d::next = this.§_-Ci§; - this.§_-Ci§ = notify; + notify.alternativa3d::next = this.name_Ci; + this.name_Ci = notify; return notify; } - _loc4_ = this.§_-Ci§; - while(_loc4_.alternativa3d::next != null && _loc4_.alternativa3d::next.alternativa3d::_-qC <= time) + _loc4_ = this.name_Ci; + while(_loc4_.alternativa3d::next != null && _loc4_.alternativa3d::next.name_qC <= time) { _loc4_ = _loc4_.alternativa3d::next; } @@ -332,14 +332,14 @@ package alternativa.engine3d.animation public function removeNotify(notify:AnimationNotify) : AnimationNotify { var n:AnimationNotify = null; - if(this.§_-Ci§ != null) + if(this.name_Ci != null) { - if(this.§_-Ci§ == notify) + if(this.name_Ci == notify) { - this.§_-Ci§ = this.§_-Ci§.alternativa3d::next; + this.name_Ci = this.name_Ci.alternativa3d::next; return notify; } - n = this.§_-Ci§; + n = this.name_Ci; while(n.alternativa3d::next != null && n.alternativa3d::next != notify) { n = n.alternativa3d::next; @@ -357,7 +357,7 @@ package alternativa.engine3d.animation { var result:Vector. = new Vector.(); var i:int = 0; - for(var notify:AnimationNotify = this.§_-Ci§; notify != null; notify = notify.alternativa3d::next) + for(var notify:AnimationNotify = this.name_Ci; notify != null; notify = notify.alternativa3d::next) { result[i] = notify; i++; @@ -368,10 +368,10 @@ package alternativa.engine3d.animation public function slice(start:Number, end:Number = 1.7976931348623157e+308) : AnimationClip { var sliced:AnimationClip = new AnimationClip(this.name); - sliced.alternativa3d::_-Kq = this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq); - for(var i:int = 0; i < this.§_-Iv§; i++) + sliced.name_Kq = this.name_Kq == null ? null : [].concat(this.name_Kq); + for(var i:int = 0; i < this.name_Iv; i++) { - sliced.addTrack(this.§_-cT§[i].slice(start,end)); + sliced.addTrack(this.name_cT[i].slice(start,end)); } return sliced; } @@ -379,10 +379,10 @@ package alternativa.engine3d.animation public function clone() : AnimationClip { var cloned:AnimationClip = new AnimationClip(this.name); - cloned.alternativa3d::_-Kq = this.alternativa3d::_-Kq == null ? null : [].concat(this.alternativa3d::_-Kq); - for(var i:int = 0; i < this.§_-Iv§; i++) + cloned.name_Kq = this.name_Kq == null ? null : [].concat(this.name_Kq); + for(var i:int = 0; i < this.name_Iv; i++) { - cloned.addTrack(this.§_-cT§[i]); + cloned.addTrack(this.name_cT[i]); } cloned.length = this.length; return cloned; diff --git a/src/alternativa/engine3d/animation/AnimationController.as b/src/alternativa/engine3d/animation/AnimationController.as index 27b80b8..be49a78 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 name_cn:AnimationNode; - private var §_-Kq§:Vector.; + private var name_Kq:Vector.; - private var §_-62§:Vector. = new Vector.(); + private var name_62:Vector. = new Vector.(); - private var §_-oX§:Dictionary = new Dictionary(); + private var name_oX:Dictionary = new Dictionary(); - private var §_-eB§:Object = new Object(); + private var name_eB:Object = new Object(); - private var §_-Jl§:int = -1; + private var name_Jl:int = -1; alternativa3d var nearestNotifyers:AnimationNotify; @@ -31,24 +31,24 @@ package alternativa.engine3d.animation public function get root() : AnimationNode { - return this.§_-cn§; + return this.name_cn; } public function set root(value:AnimationNode) : void { - if(this.§_-cn§ != value) + if(this.name_cn != value) { - if(this.§_-cn§ != null) + if(this.name_cn != null) { - this.§_-cn§.alternativa3d::setController(null); - this.§_-cn§.alternativa3d::_-Eo = false; + this.name_cn.alternativa3d::setController(null); + this.name_cn.name_Eo = false; } if(value != null) { value.alternativa3d::setController(this); - value.alternativa3d::_-Eo = true; + value.name_Eo = true; } - this.§_-cn§ = value; + this.name_cn = 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.name_Jl < 0) { - this.§_-Jl§ = getTimer(); + this.name_Jl = getTimer(); interval = 0; } else { _loc6_ = int(getTimer()); - interval = 0.001 * (_loc6_ - this.§_-Jl§); - this.§_-Jl§ = _loc6_; + interval = 0.001 * (_loc6_ - this.name_Jl); + this.name_Jl = _loc6_; } - if(this.§_-cn§ == null) + if(this.name_cn == null) { return; } - for each(data in this.§_-eB§) + for each(data in this.name_eB) { data.reset(); } - this.§_-cn§.alternativa3d::update(interval,1); - for(i = 0,count = int(this.§_-62§.length); i < count; ) + this.name_cn.alternativa3d::update(interval,1); + for(i = 0,count = int(this.name_62.length); i < count; ) { - object = this.§_-62§[i]; - data = this.§_-eB§[object.name]; + object = this.name_62[i]; + data = this.name_eB[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.name_XY; } this.alternativa3d::nearestNotifyers = null; } alternativa3d function addObject(object:Object) : void { - if(object in this.§_-oX§) + if(object in this.name_oX) { - ++this.§_-oX§[object]; + ++this.name_oX[object]; } else { if(object is Object3D) { - this.§_-62§.push(object); + this.name_62.push(object); } else { - this.§_-Kq§.push(object); + this.name_Kq.push(object); } - this.§_-oX§[object] = 1; + this.name_oX[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.name_oX[object]); used--; if(used <= 0) { if(object is Object3D) { - index = int(this.§_-62§.indexOf(object)); - count = this.§_-62§.length - 1; + index = int(this.name_62.indexOf(object as Object3D)); + count = this.name_62.length - 1; for(j = index + 1; index < count; ) { - this.§_-62§[index] = this.§_-62§[j]; + this.name_62[index] = this.name_62[j]; index++; j++; } - this.§_-62§.length = count; + this.name_62.length = count; } else { - index = int(this.§_-Kq§.indexOf(object)); - count = this.§_-Kq§.length - 1; + index = int(this.name_Kq.indexOf(object)); + count = this.name_Kq.length - 1; for(j = index + 1; index < count; ) { - this.§_-Kq§[index] = this.§_-Kq§[j]; + this.name_Kq[index] = this.name_Kq[j]; index++; j++; } - this.§_-Kq§.length = count; + this.name_Kq.length = count; } - delete this.§_-oX§[object]; + delete this.name_oX[object]; } else { - this.§_-oX§[object] = used; + this.name_oX[object] = used; } } alternativa3d function getState(name:String) : AnimationState { - var state:AnimationState = this.§_-eB§[name]; + var state:AnimationState = this.name_eB[name]; if(state == null) { state = new AnimationState(); - this.§_-eB§[name] = state; + this.name_eB[name] = state; } return state; } public function freeze() : void { - this.§_-Jl§ = -1; + this.name_Jl = -1; } } } diff --git a/src/alternativa/engine3d/animation/AnimationNode.as b/src/alternativa/engine3d/animation/AnimationNode.as index d912ecd..74a5a00 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 name_Eo: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.name_Eo && 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.name_Eo = false; node.alternativa3d::_parent = null; } } diff --git a/src/alternativa/engine3d/animation/AnimationNotify.as b/src/alternativa/engine3d/animation/AnimationNotify.as index 22c9dbb..25cb855 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 name_qC:Number = 0; alternativa3d var next:AnimationNotify; - alternativa3d var §_-1n§:Number; + alternativa3d var name_1n:Number; - alternativa3d var §_-XY§:AnimationNotify; + alternativa3d var name_XY: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.name_qC; } } } diff --git a/src/alternativa/engine3d/animation/AnimationState.as b/src/alternativa/engine3d/animation/AnimationState.as index 49f72a2..222324c 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 name_6V:int = 0; public var transform:TransformKey = new TransformKey(); - public var §_-H1§:Number = 0; + public var name_H1:Number = 0; public var numbers:Object = new Object(); - public var §_-NT§:Object = new Object(); + public var name_NT: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.name_H1 = 0; for(key in this.numbers) { delete this.numbers[key]; - delete this.§_-NT§[key]; + delete this.name_NT[key]; } } public function addWeightedTransform(key:TransformKey, weight:Number) : void { - this.§_-H1§ += weight; - this.transform.interpolate(this.transform,key,weight / this.§_-H1§); + this.name_H1 += weight; + this.transform.interpolate(this.transform,key,weight / this.name_H1); } 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.name_NT[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.name_NT[property] = sum; } else { this.numbers[property] = value; - this.§_-NT§[property] = weight; + this.name_NT[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.name_H1 > 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.name_NT["x"]); + weight = sum / (sum + this.name_H1); 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.name_NT["y"]); + weight = sum / (sum + this.name_H1); 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.name_NT["z"]); + weight = sum / (sum + this.name_H1); 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.name_NT["rotationX"]); + weight = sum / (sum + this.name_H1); 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.name_NT["rotationY"]); + weight = sum / (sum + this.name_H1); 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.name_NT["rotationZ"]); + weight = sum / (sum + this.name_H1); 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.name_NT["scaleX"]); + weight = sum / (sum + this.name_H1); 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.name_NT["scaleY"]); + weight = sum / (sum + this.name_H1); 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.name_NT["scaleZ"]); + weight = sum / (sum + this.name_H1); 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.name_H1 > 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.name_NT["x"]); + weight = sum / (sum + this.name_H1); 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.name_NT["y"]); + weight = sum / (sum + this.name_H1); 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.name_NT["z"]); + weight = sum / (sum + this.name_H1); 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.name_NT["rotationX"]); + weight = sum / (sum + this.name_H1); 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.name_NT["rotationY"]); + weight = sum / (sum + this.name_H1); 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.name_NT["rotationZ"]); + weight = sum / (sum + this.name_H1); 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.name_NT["scaleX"]); + weight = sum / (sum + this.name_H1); 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.name_NT["scaleY"]); + weight = sum / (sum + this.name_H1); 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.name_NT["scaleZ"]); + weight = sum / (sum + this.name_H1); 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..33eda8b 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 name_qC: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.name_qC; } 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.name_qC.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..9df1b6f 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_4O: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.name_4O = (1 - c) * a.name_4O + c * b.name_4O; } override public function get value() : Object { - return this.alternativa3d::_-4O; + return this.name_4O; } override public function set value(v:Object) : void { - this.alternativa3d::_-4O = Number(v); + this.name_4O = Number(v); } override alternativa3d function get nextKeyFrame() : Keyframe diff --git a/src/alternativa/engine3d/animation/keys/NumberTrack.as b/src/alternativa/engine3d/animation/keys/NumberTrack.as index 1f349cb..721b660 100644 --- a/src/alternativa/engine3d/animation/keys/NumberTrack.as +++ b/src/alternativa/engine3d/animation/keys/NumberTrack.as @@ -9,7 +9,7 @@ package alternativa.engine3d.animation.keys { private static var temp:NumberKey = new NumberKey(); - alternativa3d var §_-ku§:NumberKey; + alternativa3d var name_ku:NumberKey; public var property:String; @@ -22,18 +22,18 @@ package alternativa.engine3d.animation.keys override alternativa3d function get keyFramesList() : Keyframe { - return this.alternativa3d::_-ku; + return this.name_ku; } override alternativa3d function set keyFramesList(value:Keyframe) : void { - this.alternativa3d::_-ku = NumberKey(value); + this.name_ku = NumberKey(value); } public function addKey(time:Number, value:Number = 0) : Keyframe { var key:NumberKey = new NumberKey(); - key.alternativa3d::_-qC = time; + key.name_qC = time; key.value = value; alternativa3d::addKeyToList(key); return key; @@ -46,8 +46,8 @@ package alternativa.engine3d.animation.keys { return; } - var next:NumberKey = this.alternativa3d::_-ku; - while(next != null && next.alternativa3d::_-qC < time) + var next:NumberKey = this.name_ku; + while(next != null && next.name_qC < time) { prev = next; next = next.alternativa3d::next; @@ -56,17 +56,17 @@ package alternativa.engine3d.animation.keys { if(next != null) { - temp.interpolate(prev,next,(time - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC)); - state.addWeightedNumber(this.property,temp.alternativa3d::_-4O,weight); + temp.interpolate(prev,next,(time - prev.name_qC) / (next.name_qC - prev.name_qC)); + state.addWeightedNumber(this.property,temp.name_4O,weight); } else { - state.addWeightedNumber(this.property,prev.alternativa3d::_-4O,weight); + state.addWeightedNumber(this.property,prev.name_4O,weight); } } else if(next != null) { - state.addWeightedNumber(this.property,next.alternativa3d::_-4O,weight); + state.addWeightedNumber(this.property,next.name_4O,weight); } } diff --git a/src/alternativa/engine3d/animation/keys/Track.as b/src/alternativa/engine3d/animation/keys/Track.as index 50f8c76..14be297 100644 --- a/src/alternativa/engine3d/animation/keys/Track.as +++ b/src/alternativa/engine3d/animation/keys/Track.as @@ -9,7 +9,7 @@ package alternativa.engine3d.animation.keys { public var object:String; - alternativa3d var §_-YC§:Number = 0; + alternativa3d var name_YC:Number = 0; public function Track() { @@ -18,7 +18,7 @@ package alternativa.engine3d.animation.keys public function get length() : Number { - return this.alternativa3d::_-YC; + return this.name_YC; } alternativa3d function get keyFramesList() : Keyframe @@ -33,28 +33,28 @@ package alternativa.engine3d.animation.keys alternativa3d function addKeyToList(key:Keyframe) : void { var _loc3_:Keyframe = null; - var time:Number = key.alternativa3d::_-qC; + var time:Number = key.name_qC; if(this.alternativa3d::keyFramesList == null) { this.alternativa3d::keyFramesList = key; - this.alternativa3d::_-YC = time <= 0 ? 0 : time; + this.name_YC = time <= 0 ? 0 : time; return; } - if(this.alternativa3d::keyFramesList.alternativa3d::_-qC > time) + if(this.alternativa3d::keyFramesList.name_qC > time) { key.alternativa3d::nextKeyFrame = this.alternativa3d::keyFramesList; this.alternativa3d::keyFramesList = key; return; } _loc3_ = this.alternativa3d::keyFramesList; - while(_loc3_.alternativa3d::nextKeyFrame != null && _loc3_.alternativa3d::nextKeyFrame.alternativa3d::_-qC <= time) + while(_loc3_.alternativa3d::nextKeyFrame != null && _loc3_.alternativa3d::nextKeyFrame.name_qC <= time) { _loc3_ = _loc3_.alternativa3d::nextKeyFrame; } if(_loc3_.alternativa3d::nextKeyFrame == null) { _loc3_.alternativa3d::nextKeyFrame = key; - this.alternativa3d::_-YC = time <= 0 ? 0 : time; + this.name_YC = time <= 0 ? 0 : time; } else { @@ -73,7 +73,7 @@ package alternativa.engine3d.animation.keys this.alternativa3d::keyFramesList = this.alternativa3d::keyFramesList.alternativa3d::nextKeyFrame; if(this.alternativa3d::keyFramesList == null) { - this.alternativa3d::_-YC = 0; + this.name_YC = 0; } return key; } @@ -86,7 +86,7 @@ package alternativa.engine3d.animation.keys { if(key.alternativa3d::nextKeyFrame == null) { - this.alternativa3d::_-YC = k.alternativa3d::_-qC <= 0 ? 0 : k.alternativa3d::_-qC; + this.name_YC = k.name_qC <= 0 ? 0 : k.name_qC; } k.alternativa3d::nextKeyFrame = key.alternativa3d::nextKeyFrame; return key; @@ -132,7 +132,7 @@ package alternativa.engine3d.animation.keys var shiftTime:Number = start > 0 ? start : 0; var next:Keyframe = this.alternativa3d::keyFramesList; var key:Keyframe = this.alternativa3d::createKeyFrame(); - while(next != null && next.alternativa3d::_-qC <= start) + while(next != null && next.name_qC <= start) { prev = next; next = next.alternativa3d::nextKeyFrame; @@ -141,8 +141,8 @@ package alternativa.engine3d.animation.keys { 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.name_qC) / (next.name_qC - prev.name_qC)); + key.name_qC = start - shiftTime; } else { @@ -156,21 +156,21 @@ package alternativa.engine3d.animation.keys return; } this.alternativa3d::interpolateKeyFrame(key,key,next,1); - key.alternativa3d::_-qC = next.alternativa3d::_-qC - shiftTime; + key.name_qC = next.name_qC - shiftTime; prev = next; next = next.alternativa3d::nextKeyFrame; } dest.alternativa3d::keyFramesList = key; if(next == null || end <= start) { - dest.alternativa3d::_-YC = key.alternativa3d::_-qC <= 0 ? 0 : key.alternativa3d::_-qC; + dest.name_YC = key.name_qC <= 0 ? 0 : key.name_qC; return; } - while(next != null && next.alternativa3d::_-qC <= end) + while(next != null && next.name_qC <= end) { nextKey = this.alternativa3d::createKeyFrame(); this.alternativa3d::interpolateKeyFrame(nextKey,nextKey,next,1); - nextKey.alternativa3d::_-qC = next.alternativa3d::_-qC - shiftTime; + nextKey.name_qC = next.name_qC - shiftTime; key.alternativa3d::nextKeyFrame = nextKey; key = nextKey; prev = next; @@ -179,13 +179,13 @@ package alternativa.engine3d.animation.keys 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.name_qC) / (next.name_qC - prev.name_qC)); + nextKey.name_qC = end - shiftTime; key.alternativa3d::nextKeyFrame = nextKey; } if(nextKey != null) { - dest.alternativa3d::_-YC = nextKey.alternativa3d::_-qC <= 0 ? 0 : nextKey.alternativa3d::_-qC; + dest.name_YC = nextKey.name_qC <= 0 ? 0 : nextKey.name_qC; } } } diff --git a/src/alternativa/engine3d/animation/keys/TransformTrack.as b/src/alternativa/engine3d/animation/keys/TransformTrack.as index 4aef437..ab85f28 100644 --- a/src/alternativa/engine3d/animation/keys/TransformTrack.as +++ b/src/alternativa/engine3d/animation/keys/TransformTrack.as @@ -14,7 +14,7 @@ package alternativa.engine3d.animation.keys private static var temp:TransformKey = new TransformKey(); - private var §_-ku§:TransformKey; + private var name_ku:TransformKey; public function TransformTrack(object:String) { @@ -24,19 +24,19 @@ package alternativa.engine3d.animation.keys override alternativa3d function get keyFramesList() : Keyframe { - return this.§_-ku§; + return this.name_ku; } override alternativa3d function set keyFramesList(value:Keyframe) : void { - this.§_-ku§ = TransformKey(value); + this.name_ku = TransformKey(value); } public function addKey(time:Number, matrix:Matrix3D) : TransformKey { var key:TransformKey = null; key = new TransformKey(); - key.alternativa3d::_-qC = time; + key.name_qC = time; var components:Vector. = matrix.decompose(Orientation3D.QUATERNION); key.alternativa3d::x = components[0].x; key.alternativa3d::y = components[0].y; @@ -52,7 +52,7 @@ package alternativa.engine3d.animation.keys public function addKeyComponents(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) : TransformKey { var key:TransformKey = new TransformKey(); - key.alternativa3d::_-qC = time; + key.name_qC = time; key.alternativa3d::x = x; key.alternativa3d::y = y; key.alternativa3d::z = z; @@ -118,8 +118,8 @@ package alternativa.engine3d.animation.keys override alternativa3d function blend(time:Number, weight:Number, state:AnimationState) : void { var prev:TransformKey = null; - var next:TransformKey = this.§_-ku§; - while(next != null && next.alternativa3d::_-qC < time) + var next:TransformKey = this.name_ku; + while(next != null && next.name_qC < time) { prev = next; next = next.alternativa3d::next; @@ -128,7 +128,7 @@ package alternativa.engine3d.animation.keys { if(next != null) { - temp.interpolate(prev,next,(time - prev.alternativa3d::_-qC) / (next.alternativa3d::_-qC - prev.alternativa3d::_-qC)); + temp.interpolate(prev,next,(time - prev.name_qC) / (next.name_qC - prev.name_qC)); state.addWeightedTransform(temp,weight); } else diff --git a/src/alternativa/engine3d/collisions/EllipsoidCollider.as b/src/alternativa/engine3d/collisions/EllipsoidCollider.as index 2c67f1d..9072c2d 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 name_jX:Transform3D = new Transform3D(); alternativa3d var geometries:Vector. = new Vector.(); - alternativa3d var §_-QK§:Vector. = new Vector.(); + alternativa3d var name_QK:Vector. = new Vector.(); private var vertices:Vector. = new Vector.(); - private var §_-g0§:Vector. = new Vector.(); + private var name_g0: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 name_o5:Vector3D = new Vector3D(); private var dest:Vector3D = new Vector3D(); - private var §_-SE§:Vector3D = new Vector3D(); + private var name_SE:Vector3D = new Vector3D(); - private var §_-pU§:Vector3D = new Vector3D(); + private var name_pU:Vector3D = new Vector3D(); alternativa3d var sphere:Vector3D = new Vector3D(); - private var §_-SZ§:Vector3D = new Vector3D(); + private var name_SZ:Vector3D = new Vector3D(); - private var §_-1v§:Vector3D = new Vector3D(); + private var name_1v:Vector3D = new Vector3D(); - private var §_-L9§:Vector3D = new Vector3D(); + private var name_L9:Vector3D = new Vector3D(); - private var §_-8B§:Vector3D = new Vector3D(); + private var name_8B: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.name_SZ.x + transform.b * this.name_SZ.y + transform.c * this.name_SZ.z + transform.d; + var say:Number = transform.e * this.name_SZ.x + transform.f * this.name_SZ.y + transform.g * this.name_SZ.z + transform.h; + var saz:Number = transform.i * this.name_SZ.x + transform.j * this.name_SZ.y + transform.k * this.name_SZ.z + transform.l; + var sbx:Number = transform.a * this.name_1v.x + transform.b * this.name_1v.y + transform.c * this.name_1v.z + transform.d; + var sby:Number = transform.e * this.name_1v.x + transform.f * this.name_1v.y + transform.g * this.name_1v.z + transform.h; + var sbz:Number = transform.i * this.name_1v.x + transform.j * this.name_1v.y + transform.k * this.name_1v.z + transform.l; + var scx:Number = transform.a * this.name_L9.x + transform.b * this.name_L9.y + transform.c * this.name_L9.z + transform.d; + var scy:Number = transform.e * this.name_L9.x + transform.f * this.name_L9.y + transform.g * this.name_L9.z + transform.h; + var scz:Number = transform.i * this.name_L9.x + transform.j * this.name_L9.y + transform.k * this.name_L9.z + transform.l; + var sdx:Number = transform.a * this.name_8B.x + transform.b * this.name_8B.y + transform.c * this.name_8B.z + transform.d; + var sdy:Number = transform.e * this.name_8B.x + transform.f * this.name_8B.y + transform.g * this.name_8B.z + transform.h; + var sdz:Number = transform.i * this.name_8B.x + transform.j * this.name_8B.y + transform.k * this.name_8B.z + transform.l; var dx:Number = sax - this.alternativa3d::sphere.x; var dy:Number = say - this.alternativa3d::sphere.y; var dz:Number = saz - this.alternativa3d::sphere.z; @@ -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.name_jX.copy(this.matrix); + this.name_jX.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.name_o5.x = this.name_jX.a * displacement.x + this.name_jX.b * displacement.y + this.name_jX.c * displacement.z; + this.name_o5.y = this.name_jX.e * displacement.x + this.name_jX.f * displacement.y + this.name_jX.g * displacement.z; + this.name_o5.z = this.name_jX.i * displacement.x + this.name_jX.j * displacement.y + this.name_jX.k * displacement.z; + this.dest.x = this.src.x + this.name_o5.x; + this.dest.y = this.src.y + this.name_o5.y; + this.dest.z = this.src.z + this.name_o5.z; + var rad:Number = this.radius + this.name_o5.length; + this.name_SZ.x = -rad; + this.name_SZ.y = -rad; + this.name_SZ.z = -rad; + this.name_1v.x = rad; + this.name_1v.y = -rad; + this.name_1v.z = -rad; + this.name_L9.x = rad; + this.name_L9.y = rad; + this.name_L9.z = -rad; + this.name_8B.x = -rad; + this.name_8B.y = rad; + this.name_8B.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.name_jX,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.name_QK[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.name_GM.length ? geometry.name_GM[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.name_g0[normalsLength] = normalX; normalsLength++; - this.§_-g0§[normalsLength] = normalY; + this.name_g0[normalsLength] = normalY; normalsLength++; - this.§_-g0§[normalsLength] = normalZ; + this.name_g0[normalsLength] = normalZ; normalsLength++; - this.§_-g0§[normalsLength] = offset; + this.name_g0[normalsLength] = offset; normalsLength++; ++this.numTriangles; } @@ -319,7 +319,7 @@ package alternativa.engine3d.collisions } } this.alternativa3d::geometries.length = 0; - this.alternativa3d::_-QK.length = 0; + this.name_QK.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.name_pU.w - this.dest.x * this.name_pU.x - this.dest.y * this.name_pU.y - this.dest.z * this.name_pU.z; + this.dest.x += this.name_pU.x * offset; + this.dest.y += this.name_pU.y * offset; + this.dest.z += this.name_pU.z * offset; + this.src.x = this.name_SE.x + this.name_pU.x * (this.radius + this.threshold); + this.src.y = this.name_SE.y + this.name_pU.y * (this.radius + this.threshold); + this.src.z = this.name_SE.z + this.name_pU.z * (this.radius + this.threshold); + this.name_o5.x = this.dest.x - this.src.x; + this.name_o5.y = this.dest.y - this.src.y; + this.name_o5.z = this.dest.z - this.src.z; + if(this.name_o5.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.name_SE.x + this.matrix.b * this.name_SE.y + this.matrix.c * this.name_SE.z + this.matrix.d; + resCollisionPoint.y = this.matrix.e * this.name_SE.x + this.matrix.f * this.name_SE.y + this.matrix.g * this.name_SE.z + this.matrix.h; + resCollisionPoint.z = this.matrix.i * this.name_SE.x + this.matrix.j * this.name_SE.y + this.matrix.k * this.name_SE.z + this.matrix.l; + if(this.name_pU.x < this.name_pU.y) { - if(this.§_-pU§.x < this.§_-pU§.z) + if(this.name_pU.x < this.name_pU.z) { abx = 0; - aby = -this.§_-pU§.z; - abz = Number(this.§_-pU§.y); + aby = -this.name_pU.z; + abz = Number(this.name_pU.y); } else { - abx = -this.§_-pU§.y; - aby = Number(this.§_-pU§.x); + abx = -this.name_pU.y; + aby = Number(this.name_pU.x); abz = 0; } } - else if(this.§_-pU§.y < this.§_-pU§.z) + else if(this.name_pU.y < this.name_pU.z) { - abx = Number(this.§_-pU§.z); + abx = Number(this.name_pU.z); aby = 0; - abz = -this.§_-pU§.x; + abz = -this.name_pU.x; } else { - abx = -this.§_-pU§.y; - aby = Number(this.§_-pU§.x); + abx = -this.name_pU.y; + aby = Number(this.name_pU.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.name_pU.z * aby - this.name_pU.y * abz; + acy = this.name_pU.x * abz - this.name_pU.z * abx; + acz = this.name_pU.y * abx - this.name_pU.x * aby; abx2 = this.matrix.a * abx + this.matrix.b * aby + this.matrix.c * abz; aby2 = this.matrix.e * abx + this.matrix.f * aby + this.matrix.g * abz; abz2 = this.matrix.i * abx + this.matrix.j * aby + this.matrix.k * abz; @@ -492,9 +492,9 @@ 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.name_o5.length); var indicesLength:int = this.numTriangles * 3; - for(var i:int = 0,var j:int = 0; i < indicesLength; ) + for(var i:int = 0, j:int = 0; i < indicesLength; ) { index = this.indices[i] * 3; i++; @@ -517,13 +517,13 @@ package alternativa.engine3d.collisions cy = this.vertices[index]; index++; cz = this.vertices[index]; - normalX = this.§_-g0§[j]; + normalX = this.name_g0[j]; j++; - normalY = this.§_-g0§[j]; + normalY = this.name_g0[j]; j++; - normalZ = this.§_-g0§[j]; + normalZ = this.name_g0[j]; j++; - offset = this.§_-g0§[j]; + offset = this.name_g0[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.name_o5.x * _loc33_ - normalX * this.radius; + pointY = this.src.y + this.name_o5.y * _loc33_ - normalY * this.radius; + pointZ = this.src.z + this.name_o5.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.name_o5.x + deltaY * this.name_o5.y + deltaZ * this.name_o5.z <= 0) { - backX = -this.§_-o5§.x / displacementLength; - backY = -this.§_-o5§.y / displacementLength; - backZ = -this.§_-o5§.z / displacementLength; + backX = -this.name_o5.x / displacementLength; + backY = -this.name_o5.y / displacementLength; + backZ = -this.name_o5.z / displacementLength; deltaLength = deltaX * deltaX + deltaY * deltaY + deltaZ * deltaZ; projectionLength = deltaX * backX + deltaY * backY + deltaZ * backZ; projectionInsideLength = this.radius * this.radius - deltaLength + projectionLength * projectionLength; @@ -650,23 +650,23 @@ package alternativa.engine3d.collisions if(time < minTime) { minTime = time; - this.§_-SE§.x = faceX; - this.§_-SE§.y = faceY; - this.§_-SE§.z = faceZ; + this.name_SE.x = faceX; + this.name_SE.y = faceY; + this.name_SE.z = faceZ; if(inside) { - this.§_-pU§.x = normalX; - this.§_-pU§.y = normalY; - this.§_-pU§.z = normalZ; - this.§_-pU§.w = offset; + this.name_pU.x = normalX; + this.name_pU.y = normalY; + this.name_pU.z = normalZ; + this.name_pU.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.name_pU.x = deltaX / deltaLength; + this.name_pU.y = deltaY / deltaLength; + this.name_pU.z = deltaZ / deltaLength; + this.name_pU.w = this.name_SE.x * this.name_pU.x + this.name_SE.y * this.name_pU.y + this.name_SE.z * this.name_pU.z; } } } diff --git a/src/alternativa/engine3d/core/Camera3D.as b/src/alternativa/engine3d/core/Camera3D.as index 662add2..279e21f 100644 --- a/src/alternativa/engine3d/core/Camera3D.as +++ b/src/alternativa/engine3d/core/Camera3D.as @@ -157,10 +157,10 @@ package alternativa.engine3d.core 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.name_gJ != null)) { this.alternativa3d::renderer.alternativa3d::camera = this; - this.alternativa3d::calculateProjection(this.view.alternativa3d::_-qj,this.view.alternativa3d::_height); + this.alternativa3d::calculateProjection(this.view.name_qj,this.view.alternativa3d::_height); this.view.alternativa3d::prepareToRender(stage3D,this.alternativa3d::context3D); if(alternativa3d::transformChanged) { @@ -227,7 +227,7 @@ package alternativa.engine3d.core for(i = 0; i < this.alternativa3d::lightsLength; ) { light = this.alternativa3d::lights[i]; - light.alternativa3d::_-cl.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); + light.name_cl.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); if(light.boundBox == null || light.alternativa3d::checkBound(root)) { this.alternativa3d::childLights[childLightsLength] = light; @@ -242,7 +242,7 @@ package alternativa.engine3d.core for(i = 0; i < this.alternativa3d::lightsLength; ) { light = this.alternativa3d::lights[i]; - light.alternativa3d::_-cl.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); + light.name_cl.combine(root.alternativa3d::cameraToLocalTransform,light.alternativa3d::localToCameraTransform); i++; } root.alternativa3d::collectDraws(this,this.alternativa3d::lights,this.alternativa3d::lightsLength); @@ -257,13 +257,13 @@ package alternativa.engine3d.core } this.view.alternativa3d::processMouseEvents(this.alternativa3d::context3D,this); this.alternativa3d::renderer.alternativa3d::render(this.alternativa3d::context3D); - if(this.view.alternativa3d::_-gJ == null) + if(this.view.name_gJ == null) { this.alternativa3d::context3D.present(); } else { - this.alternativa3d::context3D.drawToBitmapData(this.view.alternativa3d::_-gJ); + this.alternativa3d::context3D.drawToBitmapData(this.view.name_gJ); this.alternativa3d::context3D.present(); } } @@ -279,7 +279,7 @@ package alternativa.engine3d.core { throw new Error("It is necessary to have view set."); } - var viewSizeX:Number = this.view.alternativa3d::_-qj * 0.5; + var viewSizeX:Number = this.view.name_qj * 0.5; var viewSizeY:Number = this.view.alternativa3d::_height * 0.5; var focalLength:Number = Math.sqrt(viewSizeX * viewSizeX + viewSizeY * viewSizeY) / Math.tan(this.fov * 0.5); var res:Vector3D = globalToLocal(point); @@ -294,7 +294,7 @@ package alternativa.engine3d.core { throw new Error("It is necessary to have view set."); } - var viewSizeX:Number = this.view.alternativa3d::_-qj * 0.5; + var viewSizeX:Number = this.view.name_qj * 0.5; var viewSizeY:Number = this.view.alternativa3d::_height * 0.5; var focalLength:Number = Math.sqrt(viewSizeX * viewSizeX + viewSizeY * viewSizeY) / Math.tan(this.fov * 0.5); var dx:Number = viewX - viewSizeX; @@ -445,7 +445,7 @@ package alternativa.engine3d.core } else { - _loc20_ = this.view.alternativa3d::_-qj * 0.5; + _loc20_ = this.view.name_qj * 0.5; _loc21_ = 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; @@ -482,8 +482,8 @@ package alternativa.engine3d.core 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.name_Cr[i]; + d = this.view.name_g4[i]; origin = this.alternativa3d::origins[i]; direction = this.alternativa3d::directions[i]; origin.x = transform.a * o.x + transform.b * o.y + transform.c * o.z + transform.d; diff --git a/src/alternativa/engine3d/core/DrawUnit.as b/src/alternativa/engine3d/core/DrawUnit.as index 0c4844f..b3380ab 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 name_kR:Vector. = new Vector.(); - alternativa3d var §_-Oq§:int = 0; + alternativa3d var name_Oq:int = 0; alternativa3d var vertexBuffers:Vector. = new Vector.(); - alternativa3d var §else §:Vector. = new Vector.(); + alternativa3d var name_else:Vector. = new Vector.(); - alternativa3d var §_-nw§:Vector. = new Vector.(); + alternativa3d var name_nw:Vector. = new Vector.(); - alternativa3d var §_-EL§:Vector. = new Vector.(); + alternativa3d var name_EL:Vector. = new Vector.(); - alternativa3d var §_-3G§:int = 0; + alternativa3d var name_3G:int = 0; - alternativa3d var §_-Aq§:Vector. = new Vector.(); + alternativa3d var name_Aq:Vector. = new Vector.(); - alternativa3d var §_-9X§:int = 0; + alternativa3d var name_9X:int = 0; - alternativa3d var §_-Cl§:Vector. = new Vector.(28 * 4,true); + alternativa3d var name_Cl:Vector. = new Vector.(28 * 4,true); - alternativa3d var §_-Kv§:int = 0; + alternativa3d var name_Kv: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.name_Oq = 0; this.alternativa3d::vertexBuffers.length = 0; - this.alternativa3d::_-3G = 0; - this.alternativa3d::_-9X = 0; - this.alternativa3d::_-Kv = 0; + this.name_3G = 0; + this.name_9X = 0; + this.name_Kv = 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.name_kR[this.name_Oq] = sampler; + this.alternativa3d::textures[this.name_Oq] = texture; + ++this.name_Oq; } 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.name_else[this.name_3G] = index; + this.alternativa3d::vertexBuffers[this.name_3G] = buffer; + this.name_nw[this.name_3G] = bufferOffset; + this.name_EL[this.name_3G] = format; + ++this.name_3G; } 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.name_9X) { - this.alternativa3d::_-9X = firstRegister + numRegisters; - this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + this.name_9X = firstRegister + numRegisters; + this.name_Aq.length = this.name_9X << 2; } - for(var i:int = 0,var len:int = numRegisters << 2; i < len; ) + for(var i:int = 0, len:int = numRegisters << 2; i < len; ) { - this.alternativa3d::_-Aq[offset] = data[i]; + this.name_Aq[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.name_9X) { - this.alternativa3d::_-9X = firstRegister + 1; - this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + this.name_9X = firstRegister + 1; + this.name_Aq.length = this.name_9X << 2; } - this.alternativa3d::_-Aq[offset] = x; + this.name_Aq[offset] = x; offset++; - this.alternativa3d::_-Aq[offset] = y; + this.name_Aq[offset] = y; offset++; - this.alternativa3d::_-Aq[offset] = z; + this.name_Aq[offset] = z; offset++; - this.alternativa3d::_-Aq[offset] = w; + this.name_Aq[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.name_9X) { - this.alternativa3d::_-9X = firstRegister + 3; - this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + this.name_9X = firstRegister + 3; + this.name_Aq.length = this.name_9X << 2; } - this.alternativa3d::_-Aq[offset] = transform.a; + this.name_Aq[offset] = transform.a; offset++; - this.alternativa3d::_-Aq[offset] = transform.b; + this.name_Aq[offset] = transform.b; offset++; - this.alternativa3d::_-Aq[offset] = transform.c; + this.name_Aq[offset] = transform.c; offset++; - this.alternativa3d::_-Aq[offset] = transform.d; + this.name_Aq[offset] = transform.d; offset++; - this.alternativa3d::_-Aq[offset] = transform.e; + this.name_Aq[offset] = transform.e; offset++; - this.alternativa3d::_-Aq[offset] = transform.f; + this.name_Aq[offset] = transform.f; offset++; - this.alternativa3d::_-Aq[offset] = transform.g; + this.name_Aq[offset] = transform.g; offset++; - this.alternativa3d::_-Aq[offset] = transform.h; + this.name_Aq[offset] = transform.h; offset++; - this.alternativa3d::_-Aq[offset] = transform.i; + this.name_Aq[offset] = transform.i; offset++; - this.alternativa3d::_-Aq[offset] = transform.j; + this.name_Aq[offset] = transform.j; offset++; - this.alternativa3d::_-Aq[offset] = transform.k; + this.name_Aq[offset] = transform.k; offset++; - this.alternativa3d::_-Aq[offset] = transform.l; + this.name_Aq[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.name_9X) { - this.alternativa3d::_-9X = firstRegister + 4; - this.alternativa3d::_-Aq.length = this.alternativa3d::_-9X << 2; + this.name_9X = firstRegister + 4; + this.name_Aq.length = this.name_9X << 2; } if(transform != null) { - this.alternativa3d::_-Aq[offset] = transform.a * camera.alternativa3d::m0; + this.name_Aq[offset] = transform.a * camera.alternativa3d::m0; offset++; - this.alternativa3d::_-Aq[offset] = transform.b * camera.alternativa3d::m0; + this.name_Aq[offset] = transform.b * camera.alternativa3d::m0; offset++; - this.alternativa3d::_-Aq[offset] = transform.c * camera.alternativa3d::m0; + this.name_Aq[offset] = transform.c * camera.alternativa3d::m0; offset++; - this.alternativa3d::_-Aq[offset] = transform.d * camera.alternativa3d::m0; + this.name_Aq[offset] = transform.d * camera.alternativa3d::m0; offset++; - this.alternativa3d::_-Aq[offset] = transform.e * camera.alternativa3d::m5; + this.name_Aq[offset] = transform.e * camera.alternativa3d::m5; offset++; - this.alternativa3d::_-Aq[offset] = transform.f * camera.alternativa3d::m5; + this.name_Aq[offset] = transform.f * camera.alternativa3d::m5; offset++; - this.alternativa3d::_-Aq[offset] = transform.g * camera.alternativa3d::m5; + this.name_Aq[offset] = transform.g * camera.alternativa3d::m5; offset++; - this.alternativa3d::_-Aq[offset] = transform.h * camera.alternativa3d::m5; + this.name_Aq[offset] = transform.h * camera.alternativa3d::m5; offset++; - this.alternativa3d::_-Aq[offset] = transform.i * camera.alternativa3d::m10; + this.name_Aq[offset] = transform.i * camera.alternativa3d::m10; offset++; - this.alternativa3d::_-Aq[offset] = transform.j * camera.alternativa3d::m10; + this.name_Aq[offset] = transform.j * camera.alternativa3d::m10; offset++; - this.alternativa3d::_-Aq[offset] = transform.k * camera.alternativa3d::m10; + this.name_Aq[offset] = transform.k * camera.alternativa3d::m10; offset++; - this.alternativa3d::_-Aq[offset] = transform.l * camera.alternativa3d::m10 + camera.alternativa3d::m14; + this.name_Aq[offset] = transform.l * camera.alternativa3d::m10 + camera.alternativa3d::m14; offset++; if(!camera.orthographic) { - this.alternativa3d::_-Aq[offset] = transform.i; + this.name_Aq[offset] = transform.i; offset++; - this.alternativa3d::_-Aq[offset] = transform.j; + this.name_Aq[offset] = transform.j; offset++; - this.alternativa3d::_-Aq[offset] = transform.k; + this.name_Aq[offset] = transform.k; offset++; - this.alternativa3d::_-Aq[offset] = transform.l; + this.name_Aq[offset] = transform.l; } else { - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 1; + this.name_Aq[offset] = 1; } } else { - this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m0; + this.name_Aq[offset] = camera.alternativa3d::m0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m5; + this.name_Aq[offset] = camera.alternativa3d::m5; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m10; + this.name_Aq[offset] = camera.alternativa3d::m10; offset++; - this.alternativa3d::_-Aq[offset] = camera.alternativa3d::m14; + this.name_Aq[offset] = camera.alternativa3d::m14; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; if(!camera.orthographic) { - this.alternativa3d::_-Aq[offset] = 1; + this.name_Aq[offset] = 1; offset++; - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; } else { - this.alternativa3d::_-Aq[offset] = 0; + this.name_Aq[offset] = 0; offset++; - this.alternativa3d::_-Aq[offset] = 1; + this.name_Aq[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.name_Kv) { - this.alternativa3d::_-Kv = firstRegister + numRegisters; + this.name_Kv = firstRegister + numRegisters; } - for(var i:int = 0,var len:int = numRegisters << 2; i < len; ) + for(var i:int = 0, len:int = numRegisters << 2; i < len; ) { - this.alternativa3d::_-Cl[offset] = data[i]; + this.name_Cl[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.name_Kv) { - this.alternativa3d::_-Kv = firstRegister + 1; + this.name_Kv = firstRegister + 1; } - this.alternativa3d::_-Cl[offset] = x; + this.name_Cl[offset] = x; offset++; - this.alternativa3d::_-Cl[offset] = y; + this.name_Cl[offset] = y; offset++; - this.alternativa3d::_-Cl[offset] = z; + this.name_Cl[offset] = z; offset++; - this.alternativa3d::_-Cl[offset] = w; + this.name_Cl[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.name_Kv) { - this.alternativa3d::_-Kv = firstRegister + 3; + this.name_Kv = firstRegister + 3; } - this.alternativa3d::_-Cl[offset] = transform.a; + this.name_Cl[offset] = transform.a; offset++; - this.alternativa3d::_-Cl[offset] = transform.b; + this.name_Cl[offset] = transform.b; offset++; - this.alternativa3d::_-Cl[offset] = transform.c; + this.name_Cl[offset] = transform.c; offset++; - this.alternativa3d::_-Cl[offset] = transform.d; + this.name_Cl[offset] = transform.d; offset++; - this.alternativa3d::_-Cl[offset] = transform.e; + this.name_Cl[offset] = transform.e; offset++; - this.alternativa3d::_-Cl[offset] = transform.f; + this.name_Cl[offset] = transform.f; offset++; - this.alternativa3d::_-Cl[offset] = transform.g; + this.name_Cl[offset] = transform.g; offset++; - this.alternativa3d::_-Cl[offset] = transform.h; + this.name_Cl[offset] = transform.h; offset++; - this.alternativa3d::_-Cl[offset] = transform.i; + this.name_Cl[offset] = transform.i; offset++; - this.alternativa3d::_-Cl[offset] = transform.j; + this.name_Cl[offset] = transform.j; offset++; - this.alternativa3d::_-Cl[offset] = transform.k; + this.name_Cl[offset] = transform.k; offset++; - this.alternativa3d::_-Cl[offset] = transform.l; + this.name_Cl[offset] = transform.l; } } } diff --git a/src/alternativa/engine3d/core/Light3D.as b/src/alternativa/engine3d/core/Light3D.as index 6cbb8c5..d3c0f82 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_cl:Transform3D = new Transform3D(); - alternativa3d var §_-oG§:String; + alternativa3d var name_oG: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.name_oG = "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..8c2ea6f 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.name_5E = 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.name_Kh = object; + event3D.name_VE = 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.name_VE = EventPhase.AT_TARGET; } for(i = 0; i < branchLength; ) { object = branch[i]; if(event3D != null) { - event3D.alternativa3d::_-Kh = object; + event3D.name_Kh = object; if(i > 0) { - event3D.alternativa3d::_-VE = EventPhase.BUBBLING_PHASE; + event3D.name_VE = 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.name_cl.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.name_cl.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..73c31b2 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 name_T5: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.name_T5.length); for(var i:int = 0; i < drawUnitsLength; ) { - list = this.alternativa3d::_-T5[i]; + list = this.name_T5[i]; if(list != null) { switch(i) @@ -86,11 +86,10 @@ package alternativa.engine3d.core } context.setDepthTest(false,Context3DCompareMode.LESS); } - continue loop1; } i++; } - this.alternativa3d::_-T5.length = 0; + this.name_T5.length = 0; } alternativa3d function createDrawUnit(object:Object3D, program:Program3D, indexBuffer:IndexBuffer3D, firstIndex:int, numTriangles:int, debugShader:ShaderProgram = null) : DrawUnit @@ -116,12 +115,12 @@ package alternativa.engine3d.core alternativa3d function addDrawUnit(drawUnit:DrawUnit, renderPriority:int) : void { - if(renderPriority >= this.alternativa3d::_-T5.length) + if(renderPriority >= this.name_T5.length) { - this.alternativa3d::_-T5.length = renderPriority + 1; + this.name_T5.length = renderPriority + 1; } - drawUnit.alternativa3d::next = this.alternativa3d::_-T5[renderPriority]; - this.alternativa3d::_-T5[renderPriority] = drawUnit; + drawUnit.alternativa3d::next = this.name_T5[renderPriority]; + this.name_T5[renderPriority] = drawUnit; } protected function renderDrawUnit(drawUnit:DrawUnit, context:Context3D, camera:Camera3D) : void @@ -134,25 +133,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.name_3G; i++) { - bufferIndex = int(drawUnit.alternativa3d::else [i]); + bufferIndex = int(drawUnit.name_else[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.name_nw[i],drawUnit.name_EL[i]); } - if(drawUnit.alternativa3d::_-9X > 0) + if(drawUnit.name_9X > 0) { - context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.alternativa3d::_-Aq,drawUnit.alternativa3d::_-9X); + context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawUnit.name_Aq,drawUnit.name_9X); } - if(drawUnit.alternativa3d::_-Kv > 0) + if(drawUnit.name_Kv > 0) { - context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.alternativa3d::_-Cl,drawUnit.alternativa3d::_-Kv); + context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.name_Cl,drawUnit.name_Kv); } - for(i = 0; i < drawUnit.alternativa3d::_-Oq; ) + for(i = 0; i < drawUnit.name_Oq; ) { - textureSampler = int(drawUnit.alternativa3d::_-kR[i]); + textureSampler = int(drawUnit.name_kR[i]); textureBit = 1 << textureSampler; currentTextures |= textureBit; _usedTextures &= ~textureBit; diff --git a/src/alternativa/engine3d/core/View.as b/src/alternativa/engine3d/core/View.as index 8057765..90972f2 100644 --- a/src/alternativa/engine3d/core/View.as +++ b/src/alternativa/engine3d/core/View.as @@ -97,57 +97,57 @@ package alternativa.engine3d.core public var antiAlias:int; - alternativa3d var §_-qj§:int; + alternativa3d var name_qj:int; alternativa3d var _height:int; - alternativa3d var §_-gJ§:BitmapData = null; + alternativa3d var name_gJ:BitmapData = null; - private var §_-j6§:Vector.; + private var name_j6:Vector.; private var indices:Vector.; - private var §_-Zv§:int = 0; + private var name_Zv:int = 0; private var surfaces:Vector.; private var geometries:Vector.; - private var §_-2L§:Vector.; + private var name_2L:Vector.; - private var §_-8b§:int = 0; + private var name_8b:int = 0; - alternativa3d var §_-Cr§:Vector.; + alternativa3d var name_Cr:Vector.; - alternativa3d var §_-g4§:Vector.; + alternativa3d var name_g4:Vector.; - private var §_-Ql§:Vector.; + private var name_Ql:Vector.; - private var §extends§:Vector.>; + private var name_extends:Vector.>; - private var §_-9L§:Vector.>; + private var name_9L:Vector.>; - private var §_-4N§:Vector.; + private var name_4N:Vector.; - private var §_-ff§:Vector.; + private var name_ff:Vector.; alternativa3d var raysLength:int = 0; - private var §_-Ki§:MouseEvent; + private var name_Ki:MouseEvent; private var target:Object3D; private var targetSurface:Surface; - private var §_-Cu§:Number; + private var name_Cu:Number; - private var §_-B4§:Object3D; + private var name_B4:Object3D; - private var §_-c3§:Object3D; + private var name_c3:Object3D; - private var §_-Lx§:Object3D; + private var name_Lx:Object3D; - private var §_-H7§:Surface; + private var name_H7:Surface; private var altKey:Boolean; @@ -159,34 +159,34 @@ package alternativa.engine3d.core private var area:Sprite; - private var §_-N2§:Logo; + private var name_N2:Logo; - private var §_-OE§:Bitmap; + private var name_OE:Bitmap; - private var §_-bx§:String = "BR"; + private var name_bx:String = "BR"; - private var §_-hq§:Number = 0; + private var name_hq:Number = 0; - private var §_-Xc§:Number = 0; + private var name_Xc:Number = 0; - private var §_-IE§:Boolean; + private var name_IE:Boolean; public function View(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.name_j6 = new Vector.(); this.indices = new Vector.(); this.surfaces = new Vector.(); this.geometries = new Vector.(); - this.§_-2L§ = new Vector.(); - 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.name_2L = new Vector.(); + this.name_Cr = new Vector.(); + this.name_g4 = new Vector.(); + this.name_Ql = new Vector.(); + this.name_extends = new Vector.>(); + this.name_9L = new Vector.>(); + this.name_4N = new Vector.(); + this.name_ff = new Vector.(); super(); if(width < 50) { @@ -196,9 +196,9 @@ package alternativa.engine3d.core { height = 50; } - this.alternativa3d::_-qj = width; + this.name_qj = width; this.alternativa3d::_height = height; - this.§_-IE§ = renderToBitmap; + this.name_IE = renderToBitmap; this.backgroundColor = backgroundColor; this.backgroundAlpha = backgroundAlpha; this.antiAlias = antiAlias; @@ -234,7 +234,7 @@ package alternativa.engine3d.core 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.name_qj; this.area.height = this.alternativa3d::_height; hitArea = this.area; super.addChild(hitArea); @@ -258,30 +258,30 @@ package alternativa.engine3d.core private function onMouse(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.name_Zv - 1; + if(this.name_Zv > 0 && mouseEvent.type == "mouseMove" && (this.name_j6[prev] as MouseEvent).type == "mouseMove") { - this.§_-j6§[prev] = mouseEvent; + this.name_j6[prev] = mouseEvent; } else { - this.§_-j6§[this.§_-Zv§] = mouseEvent; - ++this.§_-Zv§; + this.name_j6[this.name_Zv] = mouseEvent; + ++this.name_Zv; } - this.§_-Ki§ = mouseEvent; + this.name_Ki = mouseEvent; } private function onLeave(mouseEvent:MouseEvent) : void { - this.§_-j6§[this.§_-Zv§] = mouseEvent; - ++this.§_-Zv§; - this.§_-Ki§ = null; + this.name_j6[this.name_Zv] = mouseEvent; + ++this.name_Zv; + this.name_Ki = null; } private function createRenderBitmap() : void { - this.alternativa3d::_-gJ = new BitmapData(this.alternativa3d::_-qj,this.alternativa3d::_height,this.backgroundAlpha < 1,this.backgroundColor); - this.container.bitmapData = this.alternativa3d::_-gJ; + this.name_gJ = new BitmapData(this.name_qj,this.alternativa3d::_height,this.backgroundAlpha < 1,this.backgroundColor); + this.container.bitmapData = this.name_gJ; this.container.smoothing = true; } @@ -305,12 +305,12 @@ package alternativa.engine3d.core 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.name_OE == 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§); + this.name_OE = new Bitmap(Logo.image); + this.name_OE.x = Math.round((this.name_qj - this.name_OE.width) / 2); + this.name_OE.y = Math.round((this.alternativa3d::_height - this.name_OE.height) / 2); + super.addChild(this.name_OE); setTimeout(this.removeBitmap,2048); } } @@ -324,10 +324,10 @@ package alternativa.engine3d.core private function removeBitmap() : void { - if(this.§_-OE§ != null) + if(this.name_OE != null) { - super.removeChild(this.§_-OE§); - this.§_-OE§ = null; + super.removeChild(this.name_OE); + this.name_OE = null; } } @@ -339,12 +339,12 @@ package alternativa.engine3d.core var origin:Vector3D = null; var direction:Vector3D = null; var coefficient:Point = null; - if(this.§_-Ki§ != null) + if(this.name_Ki != null) { mouseMoved = false; - for(i = 0; i < this.§_-Zv§; ) + for(i = 0; i < this.name_Zv; ) { - mouseEvent = this.§_-j6§[i]; + mouseEvent = this.name_j6[i]; if(mouseEvent.type == "mouseMove" || mouseEvent.type == "mouseOut") { mouseMoved = true; @@ -354,55 +354,55 @@ package alternativa.engine3d.core } if(!mouseMoved) { - renderEvent.localX = this.§_-Ki§.localX; - renderEvent.localY = this.§_-Ki§.localY; + renderEvent.localX = this.name_Ki.localX; + renderEvent.localY = this.name_Ki.localY; renderEvent.ctrlKey = this.ctrlKey; renderEvent.altKey = this.altKey; renderEvent.shiftKey = this.shiftKey; - renderEvent.buttonDown = this.§_-Ki§.buttonDown; + renderEvent.buttonDown = this.name_Ki.buttonDown; renderEvent.delta = 0; - this.§_-j6§[this.§_-Zv§] = renderEvent; - ++this.§_-Zv§; + this.name_j6[this.name_Zv] = renderEvent; + ++this.name_Zv; } } var mouseX:Number = 1e+22; var mouseY:Number = 1e+22; - for(i = 0; i < this.§_-Zv§; i++) + for(i = 0; i < this.name_Zv; i++) { - mouseEvent = this.§_-j6§[i]; + mouseEvent = this.name_j6[i]; if(mouseEvent.type != "mouseOut") { if(mouseEvent.localX != mouseX || mouseEvent.localY != mouseY) { mouseX = Number(mouseEvent.localX); mouseY = Number(mouseEvent.localY); - if(this.alternativa3d::raysLength < this.alternativa3d::_-Cr.length) + if(this.alternativa3d::raysLength < this.name_Cr.length) { - origin = this.alternativa3d::_-Cr[this.alternativa3d::raysLength]; - direction = this.alternativa3d::_-g4[this.alternativa3d::raysLength]; - coefficient = this.§_-Ql§[this.alternativa3d::raysLength]; + origin = this.name_Cr[this.alternativa3d::raysLength]; + direction = this.name_g4[this.alternativa3d::raysLength]; + coefficient = this.name_Ql[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.(); - this.§_-9L§[this.alternativa3d::raysLength] = new Vector.(); + this.name_Cr[this.alternativa3d::raysLength] = origin; + this.name_g4[this.alternativa3d::raysLength] = direction; + this.name_Ql[this.alternativa3d::raysLength] = coefficient; + this.name_extends[this.alternativa3d::raysLength] = new Vector.(); + this.name_9L[this.alternativa3d::raysLength] = new Vector.(); } if(!camera.orthographic) { - direction.x = mouseX - this.alternativa3d::_-qj * 0.5; + direction.x = mouseX - this.name_qj * 0.5; direction.y = mouseY - this.alternativa3d::_height * 0.5; direction.z = camera.alternativa3d::focalLength; origin.x = direction.x * camera.nearClipping / camera.alternativa3d::focalLength; origin.y = direction.y * camera.nearClipping / camera.alternativa3d::focalLength; origin.z = camera.nearClipping; direction.normalize(); - coefficient.x = mouseX * 2 / this.alternativa3d::_-qj; + coefficient.x = mouseX * 2 / this.name_qj; coefficient.y = mouseY * 2 / this.alternativa3d::_height; } else @@ -410,10 +410,10 @@ package alternativa.engine3d.core direction.x = 0; direction.y = 0; direction.z = 1; - origin.x = mouseX - this.alternativa3d::_-qj * 0.5; + origin.x = mouseX - this.name_qj * 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.name_qj; coefficient.y = mouseY * 2 / this.alternativa3d::_height; } ++this.alternativa3d::raysLength; @@ -429,10 +429,10 @@ package alternativa.engine3d.core alternativa3d function addSurfaceToMouseEvents(surface:Surface, geometry:Geometry, procedure:Procedure) : void { - this.surfaces[this.§_-8b§] = surface; - this.geometries[this.§_-8b§] = geometry; - this.§_-2L§[this.§_-8b§] = procedure; - ++this.§_-8b§; + this.surfaces[this.name_8b] = surface; + this.geometries[this.name_8b] = geometry; + this.name_2L[this.name_8b] = procedure; + ++this.name_8b; } alternativa3d function prepareToRender(stage3D:Stage3D, context:Context3D) : void @@ -444,16 +444,16 @@ package alternativa.engine3d.core var isIncubator:Boolean = "viewPort" in stage3DObject; if(isIncubator) { - if(this.alternativa3d::_-qj > 2048) + if(this.name_qj > 2048) { - this.alternativa3d::_-qj = 2048; + this.name_qj = 2048; } if(this.alternativa3d::_height > 2048) { this.alternativa3d::_height = 2048; } } - if(this.alternativa3d::_-gJ == null) + if(this.name_gJ == null) { vis = Boolean(this.visible); for(parent = this.parent; parent != null; parent = parent.parent) @@ -469,7 +469,7 @@ package alternativa.engine3d.core { rectangle.x = coords.x; rectangle.y = coords.y; - point.x = this.alternativa3d::_-qj; + point.x = this.name_qj; point.y = this.alternativa3d::_height; coords = localToGlobal(point); rectangle.width = coords.x - rectangle.x; @@ -506,13 +506,13 @@ package alternativa.engine3d.core { 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.name_qj != this.name_gJ.width || this.alternativa3d::_height != this.name_gJ.height || this.backgroundAlpha < 1 != this.name_gJ.transparent) { - this.alternativa3d::_-gJ.dispose(); + this.name_gJ.dispose(); this.createRenderBitmap(); } } - context.configureBackBuffer(this.alternativa3d::_-qj,this.alternativa3d::_height,this.antiAlias); + context.configureBackBuffer(this.name_qj,this.alternativa3d::_height,this.antiAlias); var r:Number = (this.backgroundColor >> 16 & 0xFF) / 255; var g:Number = (this.backgroundColor >> 8 & 0xFF) / 255; var b:Number = (this.backgroundColor & 0xFF) / 255; @@ -533,15 +533,15 @@ package alternativa.engine3d.core var raySurfacesLength:int = 0; var mouseEvent:MouseEvent = null; var index:int = 0; - if(this.§_-Zv§ > 0) + if(this.name_Zv > 0) { - if(this.§_-8b§ > 0) + if(this.name_8b > 0) { - this.calculateSurfacesDepths(context,camera,this.alternativa3d::_-qj,this.alternativa3d::_height); + this.calculateSurfacesDepths(context,camera,this.name_qj,this.alternativa3d::_height); for(i = 0; i < this.alternativa3d::raysLength; ) { - raySurfaces = this.§extends§[i]; - rayDepths = this.§_-9L§[i]; + raySurfaces = this.name_extends[i]; + rayDepths = this.name_9L[i]; raySurfacesLength = int(raySurfaces.length); if(raySurfacesLength > 1) { @@ -550,10 +550,10 @@ package alternativa.engine3d.core i++; } } - this.§_-Cu§ = camera.farClipping; - for(i = 0; i < this.§_-Zv§; i++) + this.name_Cu = camera.farClipping; + for(i = 0; i < this.name_Zv; i++) { - mouseEvent = this.§_-j6§[i]; + mouseEvent = this.name_j6[i]; index = this.indices[i]; switch(mouseEvent.type) { @@ -563,7 +563,7 @@ package alternativa.engine3d.core { this.propagateEvent(MouseEvent3D.MOUSE_DOWN,mouseEvent,camera,this.target,this.targetSurface,this.branchToVector(this.target,branch)); } - this.§_-B4§ = this.target; + this.name_B4 = this.target; break; case "mouseWheel": this.defineTarget(index); @@ -577,26 +577,26 @@ package alternativa.engine3d.core if(this.target != null) { this.propagateEvent(MouseEvent3D.MOUSE_UP,mouseEvent,camera,this.target,this.targetSurface,this.branchToVector(this.target,branch)); - if(this.§_-B4§ == this.target) + if(this.name_B4 == this.target) { - this.§_-c3§ = this.target; + this.name_c3 = this.target; this.propagateEvent(MouseEvent3D.CLICK,mouseEvent,camera,this.target,this.targetSurface,this.branchToVector(this.target,branch)); } } - this.§_-B4§ = null; + this.name_B4 = null; break; case "doubleClick": this.defineTarget(index); if(this.target != null) { this.propagateEvent(MouseEvent3D.MOUSE_UP,mouseEvent,camera,this.target,this.targetSurface,this.branchToVector(this.target,branch)); - if(this.§_-B4§ == this.target) + if(this.name_B4 == this.target) { - this.propagateEvent(this.§_-c3§ == this.target && this.target.doubleClickEnabled ? MouseEvent3D.DOUBLE_CLICK : MouseEvent3D.CLICK,mouseEvent,camera,this.target,this.targetSurface,this.branchToVector(this.target,branch)); + this.propagateEvent(this.name_c3 == this.target && this.target.doubleClickEnabled ? MouseEvent3D.DOUBLE_CLICK : MouseEvent3D.CLICK,mouseEvent,camera,this.target,this.targetSurface,this.branchToVector(this.target,branch)); } } - this.§_-c3§ = null; - this.§_-B4§ = null; + this.name_c3 = null; + this.name_B4 = null; break; case "mouseMove": this.defineTarget(index); @@ -604,23 +604,23 @@ package alternativa.engine3d.core { this.propagateEvent(MouseEvent3D.MOUSE_MOVE,mouseEvent,camera,this.target,this.targetSurface,this.branchToVector(this.target,branch)); } - if(this.§_-Lx§ != this.target) + if(this.name_Lx != this.target) { this.processOverOut(mouseEvent,camera); } break; case "mouseOut": - this.§_-Ki§ = null; + this.name_Ki = null; this.target = null; this.targetSurface = null; - if(this.§_-Lx§ != this.target) + if(this.name_Lx != this.target) { this.processOverOut(mouseEvent,camera); } break; case "render": this.defineTarget(index); - if(this.§_-Lx§ != this.target) + if(this.name_Lx != this.target) { this.processOverOut(mouseEvent,camera); } @@ -628,17 +628,17 @@ package alternativa.engine3d.core } this.target = null; this.targetSurface = null; - this.§_-Cu§ = camera.farClipping; + this.name_Cu = camera.farClipping; } } this.surfaces.length = 0; - this.§_-8b§ = 0; - this.§_-j6§.length = 0; - this.§_-Zv§ = 0; + this.name_8b = 0; + this.name_j6.length = 0; + this.name_Zv = 0; for(i = 0; i < this.alternativa3d::raysLength; i++) { - this.§extends§[i].length = 0; - this.§_-9L§[i].length = 0; + this.name_extends[i].length = 0; + this.name_9L[i].length = 0; } this.alternativa3d::raysLength = 0; } @@ -755,9 +755,9 @@ package alternativa.engine3d.core var pixelIndex:int = 0; for(i = 0; i < this.alternativa3d::raysLength; ) { - rayCoefficients = this.§_-Ql§[i]; + rayCoefficients = this.name_Ql[i]; i++; - for(j = 0; j < this.§_-8b§; ) + for(j = 0; j < this.name_8b; ) { if(pixelIndex == 0) { @@ -768,7 +768,7 @@ package alternativa.engine3d.core } else { - drawColoredRectConst[0] = this.alternativa3d::raysLength * this.§_-8b§ * 2 / contextWidth; + drawColoredRectConst[0] = this.alternativa3d::raysLength * this.name_8b * 2 / contextWidth; drawColoredRectConst[1] = -2 / contextHeight; context.setDepthTest(false,Context3DCompareMode.ALWAYS); context.setProgram(drawColoredRectProgram.program); @@ -779,18 +779,18 @@ package alternativa.engine3d.core drawRectColor[2] = 0; drawRectColor[3] = 1; context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawRectColor); - context.drawTriangles(drawRectGeometry.alternativa3d::_-EM,0,2); + context.drawTriangles(drawRectGeometry.name_EM,0,2); context.setVertexBufferAt(0,null); } } scissor.x = pixelIndex; context.setScissorRectangle(scissor); this.drawSurface(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.name_4N[pixelIndex] = i - 1; + this.name_ff[pixelIndex] = j; j++; pixelIndex++; - if(pixelIndex >= contextWidth || i >= this.alternativa3d::raysLength && j >= this.§_-8b§) + if(pixelIndex >= contextWidth || i >= this.alternativa3d::raysLength && j >= this.name_8b) { if(this.antiAlias > 0) { @@ -806,7 +806,7 @@ package alternativa.engine3d.core 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.name_EM,0,2); context.setTextureAt(0,null); context.setVertexBufferAt(0,null); context.setVertexBufferAt(1,null); @@ -825,10 +825,10 @@ package alternativa.engine3d.core 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.name_4N[k]; + raySurfaces = this.name_extends[ind]; + rayDepths = this.name_9L[ind]; + ind = this.name_ff[k]; raySurfaces.push(this.surfaces[ind]); rayDepths.push((red + green / 255) / kZ); } @@ -842,7 +842,7 @@ package alternativa.engine3d.core context.setDepthTest(true,Context3DCompareMode.ALWAYS); context.setProgram(drawColoredRectProgram.program); context.setVertexBufferAt(0,drawRectGeometry.alternativa3d::getVertexBuffer(VertexAttributes.POSITION),drawRectGeometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); - drawColoredRectConst[0] = this.alternativa3d::raysLength * this.§_-8b§ * 2 / contextWidth; + drawColoredRectConst[0] = this.alternativa3d::raysLength * this.name_8b * 2 / contextWidth; drawColoredRectConst[1] = -2 / contextHeight; context.setProgramConstantsFromVector(Context3DProgramType.VERTEX,0,drawColoredRectConst); var r:Number = (this.backgroundColor >> 16 & 0xFF) / 255; @@ -862,7 +862,7 @@ package alternativa.engine3d.core } drawRectColor[3] = this.backgroundAlpha; context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawRectColor); - context.drawTriangles(drawRectGeometry.alternativa3d::_-EM,0,2); + context.drawTriangles(drawRectGeometry.name_EM,0,2); context.setVertexBufferAt(0,null); } @@ -873,7 +873,7 @@ package alternativa.engine3d.core var position:String = null; var surface:Surface = this.surfaces[index]; var geometry:Geometry = this.geometries[index]; - var procedure:Procedure = this.§_-2L§[index]; + var procedure:Procedure = this.name_2L[index]; var object:Object3D = surface.alternativa3d::object; var drawDistanceProgram:ShaderProgram = drawDistancePrograms[procedure]; if(drawDistanceProgram == null) @@ -901,9 +901,9 @@ package alternativa.engine3d.core { return; } - drawUnit.alternativa3d::_-3G = 0; - drawUnit.alternativa3d::_-9X = 0; - drawUnit.alternativa3d::_-Kv = 0; + drawUnit.name_3G = 0; + drawUnit.name_9X = 0; + drawUnit.name_Kv = 0; object.alternativa3d::setTransformConstants(drawUnit,surface,drawDistanceProgram.vertexShader,camera); drawUnit.alternativa3d::setVertexConstantsFromTransform(drawDistanceProgram.vertexShader.getVariableIndex("transform0"),object.alternativa3d::localToCameraTransform); drawUnit.alternativa3d::setVertexConstantsFromNumbers(drawDistanceProgram.vertexShader.getVariableIndex("coefficient"),xOffset,yOffset,vertexConst,orthographic ? 1 : 0); @@ -911,17 +911,17 @@ package alternativa.engine3d.core drawUnit.alternativa3d::setFragmentConstantsFromNumbers(drawDistanceProgram.fragmentShader.getVariableIndex("code"),fragmentConst,0,0,1); context.setProgram(drawDistanceProgram.program); context.setVertexBufferAt(0,buffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); - for(i = 0; i < drawUnit.alternativa3d::_-3G; i++) + for(i = 0; i < drawUnit.name_3G; i++) { - context.setVertexBufferAt(drawUnit.alternativa3d::else [i],drawUnit.alternativa3d::vertexBuffers[i],drawUnit.alternativa3d::_-nw[i],drawUnit.alternativa3d::_-EL[i]); + context.setVertexBufferAt(drawUnit.name_else[i],drawUnit.alternativa3d::vertexBuffers[i],drawUnit.name_nw[i],drawUnit.name_EL[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.name_Aq,drawUnit.name_9X); + context.setProgramConstantsFromVector(Context3DProgramType.FRAGMENT,0,drawUnit.name_Cl,drawUnit.name_Kv); + context.drawTriangles(geometry.name_EM,surface.indexBegin,surface.numTriangles); context.setVertexBufferAt(0,null); - for(i = 0; i < drawUnit.alternativa3d::_-3G; i++) + for(i = 0; i < drawUnit.name_3G; i++) { - context.setVertexBufferAt(drawUnit.alternativa3d::else [i],null); + context.setVertexBufferAt(drawUnit.name_else[i],null); } } @@ -992,12 +992,12 @@ package alternativa.engine3d.core var j:int = 0; var object:Object3D = null; this.branchToVector(this.target,branch); - this.branchToVector(this.§_-Lx§,overedBranch); + this.branchToVector(this.name_Lx,overedBranch); var branchLength:int = int(branch.length); var overedBranchLength:int = int(overedBranch.length); - if(this.§_-Lx§ != null) + if(this.name_Lx != null) { - this.propagateEvent(MouseEvent3D.MOUSE_OUT,mouseEvent,camera,this.§_-Lx§,this.§_-H7§,overedBranch,true,this.target); + this.propagateEvent(MouseEvent3D.MOUSE_OUT,mouseEvent,camera,this.name_Lx,this.name_H7,overedBranch,true,this.target); changedBranchLength = 0; for(i = 0; i < overedBranchLength; ) { @@ -1019,7 +1019,7 @@ package alternativa.engine3d.core if(changedBranchLength > 0) { changedBranch.length = changedBranchLength; - this.propagateEvent(MouseEvent3D.ROLL_OUT,mouseEvent,camera,this.§_-Lx§,this.§_-H7§,changedBranch,false,this.target); + this.propagateEvent(MouseEvent3D.ROLL_OUT,mouseEvent,camera,this.name_Lx,this.name_H7,changedBranch,false,this.target); } } if(this.target != null) @@ -1045,9 +1045,9 @@ package alternativa.engine3d.core if(changedBranchLength > 0) { changedBranch.length = changedBranchLength; - this.propagateEvent(MouseEvent3D.ROLL_OVER,mouseEvent,camera,this.target,this.targetSurface,changedBranch,false,this.§_-Lx§); + this.propagateEvent(MouseEvent3D.ROLL_OVER,mouseEvent,camera,this.target,this.targetSurface,changedBranch,false,this.name_Lx); } - this.propagateEvent(MouseEvent3D.MOUSE_OVER,mouseEvent,camera,this.target,this.targetSurface,branch,true,this.§_-Lx§); + this.propagateEvent(MouseEvent3D.MOUSE_OVER,mouseEvent,camera,this.target,this.targetSurface,branch,true,this.name_Lx); useHandCursor = this.target.useHandCursor; } else @@ -1055,8 +1055,8 @@ package alternativa.engine3d.core useHandCursor = false; } Mouse.cursor = Mouse.cursor; - this.§_-Lx§ = this.target; - this.§_-H7§ = this.targetSurface; + this.name_Lx = this.target; + this.name_H7 = this.targetSurface; } private function branchToVector(object:Object3D, vector:Vector.) : Vector. @@ -1090,13 +1090,13 @@ package alternativa.engine3d.core { if(mouseEvent3D == null) { - this.calculateLocalCoords(camera,target.alternativa3d::cameraToLocalTransform,this.§_-Cu§,mouseEvent); + this.calculateLocalCoords(camera,target.alternativa3d::cameraToLocalTransform,this.name_Cu,mouseEvent); mouseEvent3D = new MouseEvent3D(type,bubbles,localCoords.x,localCoords.y,localCoords.z,relatedObject,mouseEvent.ctrlKey,mouseEvent.altKey,mouseEvent.shiftKey,mouseEvent.buttonDown,mouseEvent.delta); - mouseEvent3D.alternativa3d::_-5E = target; - mouseEvent3D.alternativa3d::_-BX = targetSurface; + mouseEvent3D.name_5E = target; + mouseEvent3D.name_BX = targetSurface; } - mouseEvent3D.alternativa3d::_-Kh = object; - mouseEvent3D.alternativa3d::_-VE = 1; + mouseEvent3D.name_Kh = object; + mouseEvent3D.name_VE = 1; length = int(vector.length); for(j = 0; j < length; functions[j] = vector[j],j++) { @@ -1104,7 +1104,7 @@ package alternativa.engine3d.core for(j = 0; j < length; ) { (functions[j] as Function).call(null,mouseEvent3D); - if(mouseEvent3D.alternativa3d::_-XD) + if(mouseEvent3D.name_XD) { return; } @@ -1128,13 +1128,13 @@ package alternativa.engine3d.core { if(mouseEvent3D == null) { - this.calculateLocalCoords(camera,target.alternativa3d::cameraToLocalTransform,this.§_-Cu§,mouseEvent); + this.calculateLocalCoords(camera,target.alternativa3d::cameraToLocalTransform,this.name_Cu,mouseEvent); mouseEvent3D = new MouseEvent3D(type,bubbles,localCoords.x,localCoords.y,localCoords.z,relatedObject,mouseEvent.ctrlKey,mouseEvent.altKey,mouseEvent.shiftKey,mouseEvent.buttonDown,mouseEvent.delta); - mouseEvent3D.alternativa3d::_-5E = target; - mouseEvent3D.alternativa3d::_-BX = targetSurface; + mouseEvent3D.name_5E = target; + mouseEvent3D.name_BX = targetSurface; } - mouseEvent3D.alternativa3d::_-Kh = object; - mouseEvent3D.alternativa3d::_-VE = i == 0 ? 2 : 3; + mouseEvent3D.name_Kh = object; + mouseEvent3D.name_VE = i == 0 ? 2 : 3; length = int(vector.length); for(j = 0; j < length; functions[j] = vector[j],j++) { @@ -1142,7 +1142,7 @@ package alternativa.engine3d.core for(j = 0; j < length; ) { (functions[j] as Function).call(null,mouseEvent3D); - if(mouseEvent3D.alternativa3d::_-XD) + if(mouseEvent3D.name_XD) { return; } @@ -1164,12 +1164,12 @@ package alternativa.engine3d.core var y:Number = NaN; if(!camera.orthographic) { - x = z * (mouseEvent.localX - this.alternativa3d::_-qj * 0.5) / camera.alternativa3d::focalLength; + x = z * (mouseEvent.localX - this.name_qj * 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.name_qj * 0.5; y = mouseEvent.localY - this.alternativa3d::_height * 0.5; } localCoords.x = transform.a * x + transform.b * y + transform.c * z + transform.d; @@ -1185,8 +1185,8 @@ package alternativa.engine3d.core var object:Object3D = null; var potentialTarget:Object3D = null; var obj:Object3D = null; - var surfaces:Vector. = this.§extends§[index]; - var depths:Vector. = this.§_-9L§[index]; + var surfaces:Vector. = this.name_extends[index]; + var depths:Vector. = this.name_9L[index]; for(var i:int = surfaces.length - 1; i >= 0; ) { surface = surfaces[i]; @@ -1218,7 +1218,7 @@ package alternativa.engine3d.core { this.target = potentialTarget; this.targetSurface = surface; - this.§_-Cu§ = depth; + this.name_Cu = depth; } break; } @@ -1230,7 +1230,7 @@ package alternativa.engine3d.core source = object; this.target = potentialTarget; this.targetSurface = surface; - this.§_-Cu§ = depth; + this.name_Cu = depth; } if(source == this.target) { @@ -1243,117 +1243,117 @@ package alternativa.engine3d.core public function get renderToBitmap() : Boolean { - return this.alternativa3d::_-gJ != null; + return this.name_gJ != null; } public function set renderToBitmap(value:Boolean) : void { if(value) { - if(this.alternativa3d::_-gJ == null) + if(this.name_gJ == null) { this.createRenderBitmap(); } } - else if(this.alternativa3d::_-gJ != null) + else if(this.name_gJ != null) { this.container.bitmapData = null; - this.alternativa3d::_-gJ.dispose(); - this.alternativa3d::_-gJ = null; + this.name_gJ.dispose(); + this.name_gJ = null; } } public function get canvas() : BitmapData { - return this.alternativa3d::_-gJ; + return this.name_gJ; } public function showLogo() : void { - if(this.§_-N2§ == null) + if(this.name_N2 == null) { - this.§_-N2§ = new Logo(); - super.addChild(this.§_-N2§); - this.§package§(); + this.name_N2 = new Logo(); + super.addChild(this.name_N2); + this.name_package(); } } public function hideLogo() : void { - if(this.§_-N2§ != null) + if(this.name_N2 != null) { - super.removeChild(this.§_-N2§); - this.§_-N2§ = null; + super.removeChild(this.name_N2); + this.name_N2 = null; } } public function get logoAlign() : String { - return this.§_-bx§; + return this.name_bx; } public function set logoAlign(value:String) : void { - this.§_-bx§ = value; - this.§package§(); + this.name_bx = value; + this.name_package(); } public function get logoHorizontalMargin() : Number { - return this.§_-hq§; + return this.name_hq; } public function set logoHorizontalMargin(value:Number) : void { - this.§_-hq§ = value; - this.§package§(); + this.name_hq = value; + this.name_package(); } public function get logoVerticalMargin() : Number { - return this.§_-Xc§; + return this.name_Xc; } public function set logoVerticalMargin(value:Number) : void { - this.§_-Xc§ = value; - this.§package§(); + this.name_Xc = value; + this.name_package(); } - private function §package§() : void + private function name_package() : void { - if(this.§_-N2§ != null) + if(this.name_N2 != null) { - if(this.§_-bx§ == StageAlign.TOP_LEFT || this.§_-bx§ == StageAlign.LEFT || this.§_-bx§ == StageAlign.BOTTOM_LEFT) + if(this.name_bx == StageAlign.TOP_LEFT || this.name_bx == StageAlign.LEFT || this.name_bx == StageAlign.BOTTOM_LEFT) { - this.§_-N2§.x = Math.round(this.§_-hq§); + this.name_N2.x = Math.round(this.name_hq); } - if(this.§_-bx§ == StageAlign.TOP || this.§_-bx§ == StageAlign.BOTTOM) + if(this.name_bx == StageAlign.TOP || this.name_bx == StageAlign.BOTTOM) { - this.§_-N2§.x = Math.round((this.alternativa3d::_-qj - this.§_-N2§.width) / 2); + this.name_N2.x = Math.round((this.name_qj - this.name_N2.width) / 2); } - if(this.§_-bx§ == StageAlign.TOP_RIGHT || this.§_-bx§ == StageAlign.RIGHT || this.§_-bx§ == StageAlign.BOTTOM_RIGHT) + if(this.name_bx == StageAlign.TOP_RIGHT || this.name_bx == StageAlign.RIGHT || this.name_bx == StageAlign.BOTTOM_RIGHT) { - this.§_-N2§.x = Math.round(this.alternativa3d::_-qj - this.§_-hq§ - this.§_-N2§.width); + this.name_N2.x = Math.round(this.name_qj - this.name_hq - this.name_N2.width); } - if(this.§_-bx§ == StageAlign.TOP_LEFT || this.§_-bx§ == StageAlign.TOP || this.§_-bx§ == StageAlign.TOP_RIGHT) + if(this.name_bx == StageAlign.TOP_LEFT || this.name_bx == StageAlign.TOP || this.name_bx == StageAlign.TOP_RIGHT) { - this.§_-N2§.y = Math.round(this.§_-Xc§); + this.name_N2.y = Math.round(this.name_Xc); } - if(this.§_-bx§ == StageAlign.LEFT || this.§_-bx§ == StageAlign.RIGHT) + if(this.name_bx == StageAlign.LEFT || this.name_bx == StageAlign.RIGHT) { - this.§_-N2§.y = Math.round((this.alternativa3d::_height - this.§_-N2§.height) / 2); + this.name_N2.y = Math.round((this.alternativa3d::_height - this.name_N2.height) / 2); } - if(this.§_-bx§ == StageAlign.BOTTOM_LEFT || this.§_-bx§ == StageAlign.BOTTOM || this.§_-bx§ == StageAlign.BOTTOM_RIGHT) + if(this.name_bx == StageAlign.BOTTOM_LEFT || this.name_bx == StageAlign.BOTTOM || this.name_bx == StageAlign.BOTTOM_RIGHT) { - this.§_-N2§.y = Math.round(this.alternativa3d::_height - this.§_-Xc§ - this.§_-N2§.height); + this.name_N2.y = Math.round(this.alternativa3d::_height - this.name_Xc - this.name_N2.height); } } } override public function get width() : Number { - return this.alternativa3d::_-qj; + return this.name_qj; } override public function set width(value:Number) : void @@ -1362,9 +1362,9 @@ package alternativa.engine3d.core { value = 50; } - this.alternativa3d::_-qj = value; + this.name_qj = value; this.area.width = value; - this.§package§(); + this.name_package(); } override public function get height() : Number @@ -1380,7 +1380,7 @@ package alternativa.engine3d.core } this.alternativa3d::_height = value; this.area.height = value; - this.§package§(); + this.name_package(); } override public function addChild(child:DisplayObject) : DisplayObject diff --git a/src/alternativa/engine3d/core/events/Event3D.as b/src/alternativa/engine3d/core/events/Event3D.as index 0a3965f..75a199a 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_5E:Object3D; - alternativa3d var §_-Kh§:Object3D; + alternativa3d var name_Kh:Object3D; - alternativa3d var §_-iJ§:Boolean; + alternativa3d var name_iJ:Boolean; - alternativa3d var §_-VE§:uint = 3; + alternativa3d var name_VE:uint = 3; alternativa3d var stop:Boolean = false; - alternativa3d var §_-XD§:Boolean = false; + alternativa3d var name_XD:Boolean = false; public function Event3D(type:String, bubbles:Boolean = true) { super(type,bubbles); - this.alternativa3d::_-iJ = bubbles; + this.name_iJ = bubbles; } override public function get bubbles() : Boolean { - return this.alternativa3d::_-iJ; + return this.name_iJ; } override public function get eventPhase() : uint { - return this.alternativa3d::_-VE; + return this.name_VE; } override public function get target() : Object { - return this.alternativa3d::_-5E; + return this.name_5E; } override public function get currentTarget() : Object { - return this.alternativa3d::_-Kh; + return this.name_Kh; } override public function stopPropagation() : void @@ -57,15 +57,15 @@ package alternativa.engine3d.core.events override public function stopImmediatePropagation() : void { - this.alternativa3d::_-XD = true; + this.name_XD = 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.name_iJ); + result.name_5E = this.name_5E; + result.name_Kh = this.name_Kh; + result.name_VE = this.name_VE; return result; } diff --git a/src/alternativa/engine3d/core/events/MouseEvent3D.as b/src/alternativa/engine3d/core/events/MouseEvent3D.as index 081c08e..ed86ac9 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 name_BX: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.name_BX; } 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,name_iJ,this.localX,this.localY,this.localZ,this.relatedObject,this.ctrlKey,this.altKey,this.shiftKey,this.buttonDown,this.delta); } override public function toString() : String diff --git a/src/alternativa/engine3d/effects/AGALMiniAssembler.as b/src/alternativa/engine3d/effects/AGALMiniAssembler.as index 67136f9..e7b2310 100644 --- a/src/alternativa/engine3d/effects/AGALMiniAssembler.as +++ b/src/alternativa/engine3d/effects/AGALMiniAssembler.as @@ -190,16 +190,16 @@ package alternativa.engine3d.effects private static const CLAMP:String = "clamp"; - private var §_-0e§:ByteArray = null; + private var name_0e:ByteArray = null; - private var §_-iF§:String = ""; + private var name_iF:String = ""; - private var §_-9J§:Boolean = false; + private var name_9J:Boolean = false; public function AGALMiniAssembler(debugging:Boolean = false) { super(); - this.§_-9J§ = debugging; + this.name_9J = debugging; if(!initialized) { init(); @@ -281,12 +281,12 @@ package alternativa.engine3d.effects public function get error() : String { - return this.§_-iF§; + return this.name_iF; } public function get agalcode() : ByteArray { - return this.§_-0e§; + return this.name_0e; } public function assemble(mode:String, source:String, verbose:Boolean = false) : ByteArray @@ -332,8 +332,8 @@ package alternativa.engine3d.effects var index:uint = 0; var byteStr:String = null; var start:uint = uint(getTimer()); - this.§_-0e§ = new ByteArray(); - this.§_-iF§ = ""; + this.name_0e = new ByteArray(); + this.name_iF = ""; var isFrag:Boolean = false; if(mode == FRAGMENT) { @@ -341,7 +341,7 @@ package alternativa.engine3d.effects } else if(mode != VERTEX) { - this.§_-iF§ = "ERROR: mode needs to be \"" + FRAGMENT + "\" or \"" + VERTEX + "\" but is \"" + mode + "\"."; + this.name_iF = "ERROR: mode needs to be \"" + FRAGMENT + "\" or \"" + VERTEX + "\" but is \"" + mode + "\"."; } this.agalcode.endian = Endian.LITTLE_ENDIAN; this.agalcode.writeByte(160); @@ -353,7 +353,7 @@ package alternativa.engine3d.effects var nops:int = 0; var lng:int = int(lines.length); i = 0; - while(i < lng && this.§_-iF§ == "") + while(i < lng && this.name_iF == "") { line = new String(lines[i]); startcomment = int(line.search("//")); @@ -369,7 +369,7 @@ package alternativa.engine3d.effects } opCode = line.match(/^\w{3}/ig); opFound = OPMAP[opCode[0]]; - if(this.§_-9J§) + if(this.name_9J) { trace(opFound); } @@ -388,7 +388,7 @@ package alternativa.engine3d.effects nest--; if(nest < 0) { - this.§_-iF§ = "error: conditional closes without open."; + this.name_iF = "error: conditional closes without open."; break; } } @@ -397,13 +397,13 @@ package alternativa.engine3d.effects nest++; if(nest > MAX_NESTING) { - this.§_-iF§ = "error: nesting to deep, maximum allowed is " + MAX_NESTING + "."; + this.name_iF = "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.name_iF = "error: opcode is only allowed in fragment programs."; break; } if(verbose) @@ -414,13 +414,13 @@ package alternativa.engine3d.effects nops++; if(nops > MAX_OPCODES) { - this.§_-iF§ = "error: too many opcodes. maximum is " + MAX_OPCODES + "."; + this.name_iF = "error: too many opcodes. maximum is " + MAX_OPCODES + "."; break; } regs = line.match(/vc\[([vof][actps]?)(\d*)?(\.[xyzw](\+\d{1,3})?)?\](\.[xyzw]{1,4})?|([vof][actps]?)(\d*)?(\.[xyzw]{1,4})?/gi); if(regs.length != opFound.numRegister) { - this.§_-iF§ = "error: wrong number of operands. found " + regs.length + " but expected " + opFound.numRegister + "."; + this.name_iF = "error: wrong number of operands. found " + regs.length + " but expected " + opFound.numRegister + "."; break; } badreg = false; @@ -441,13 +441,13 @@ package alternativa.engine3d.effects } res = regs[j].match(/^\b[A-Za-z]{1,2}/ig); regFound = REGMAP[res[0]]; - if(this.§_-9J§) + if(this.name_9J) { trace(regFound); } if(regFound == null) { - this.§_-iF§ = "error: could not parse operand " + j + " (" + regs[j] + ")."; + this.name_iF = "error: could not parse operand " + j + " (" + regs[j] + ")."; badreg = true; break; } @@ -455,20 +455,20 @@ package alternativa.engine3d.effects { if(!(regFound.flags & REG_FRAG)) { - this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") only allowed in vertex programs."; + this.name_iF = "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.name_iF = "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.name_iF = "error: register operand " + j + " (" + regs[j] + ") only allowed in fragment programs."; badreg = true; break; } @@ -481,7 +481,7 @@ package alternativa.engine3d.effects } if(regFound.range < regidx) { - this.§_-iF§ = "error: register operand " + j + " (" + regs[j] + ") index exceeds limit of " + (regFound.range + 1) + "."; + this.name_iF = "error: register operand " + j + " (" + regs[j] + ") index exceeds limit of " + (regFound.range + 1) + "."; badreg = true; break; } @@ -494,7 +494,7 @@ package alternativa.engine3d.effects reloffset = 0; if(isDest && isRelative) { - this.§_-iF§ = "error: relative can not be destination"; + this.name_iF = "error: relative can not be destination"; badreg = true; break; } @@ -537,7 +537,7 @@ package alternativa.engine3d.effects regFoundRel = REGMAP[relname[0]]; if(regFoundRel == null) { - this.§_-iF§ = "error: bad index register"; + this.name_iF = "error: bad index register"; badreg = true; break; } @@ -545,7 +545,7 @@ package alternativa.engine3d.effects selmatch = relreg[0].match(/(\.[xyzw]{1,1})/); if(selmatch.length == 0) { - this.§_-iF§ = "error: bad index register select"; + this.name_iF = "error: bad index register select"; badreg = true; break; } @@ -561,7 +561,7 @@ package alternativa.engine3d.effects } if(reloffset < 0 || reloffset > 255) { - this.§_-iF§ = "error: index offset " + reloffset + " out of bounds. [0..255]"; + this.name_iF = "error: index offset " + reloffset + " out of bounds. [0..255]"; badreg = true; break; } @@ -652,13 +652,13 @@ package alternativa.engine3d.effects } i++; } - if(this.§_-iF§ != "") + if(this.name_iF != "") { - this.§_-iF§ += "\n at line " + i + " " + lines[i]; + this.name_iF += "\n at line " + i + " " + lines[i]; this.agalcode.length = 0; - trace(this.§_-iF§); + trace(this.name_iF); } - if(this.§_-9J§) + if(this.name_9J) { dbgLine = "generated bytecode:"; agalLength = uint(this.agalcode.length); diff --git a/src/alternativa/engine3d/effects/Particle.as b/src/alternativa/engine3d/effects/Particle.as index 498d5f3..9ebc9ae 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_q:Number; - public var §_-Ts§:Number; + public var name_Ts:Number; - public var §_-ej§:Number; + public var name_ej:Number; - public var §_-W5§:Number; + public var name_W5:Number; public var red:Number; diff --git a/src/alternativa/engine3d/effects/ParticleEffect.as b/src/alternativa/engine3d/effects/ParticleEffect.as index 8792269..61280af 100644 --- a/src/alternativa/engine3d/effects/ParticleEffect.as +++ b/src/alternativa/engine3d/effects/ParticleEffect.as @@ -23,7 +23,7 @@ package alternativa.engine3d.effects alternativa3d var next:ParticleEffect; - alternativa3d var §implements§:ParticleEffect; + alternativa3d var name_implements:ParticleEffect; alternativa3d var system:ParticleSystem; @@ -35,38 +35,38 @@ package alternativa.engine3d.effects alternativa3d var aabb:BoundBox; - alternativa3d var §_-M7§:Vector3D; + alternativa3d var name_M7:Vector3D; - protected var §_-cF§:Vector3D; + protected var name_cF:Vector3D; - protected var §_-gV§:Vector.; + protected var name_gV:Vector.; - protected var §_-lB§:Vector.; + protected var name_lB:Vector.; - protected var §_-ib§:Vector.; + protected var name_ib:Vector.; - protected var §_-Nz§:Vector.; + protected var name_Nz:Vector.; - protected var §_-kf§:int = 0; + protected var name_kf:int = 0; - private var §_-TK§:int; + private var name_TK:int; - private var §_-hs§:int; + private var name_hs:int; - private var §_-G1§:Vector3D; + private var name_G1:Vector3D; - private var §_-Q2§:Vector3D; + private var name_Q2:Vector3D; public function ParticleEffect() { var i:int = 0; this.alternativa3d::aabb = new BoundBox(); - 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); + this.name_gV = new Vector.(); + this.name_lB = new Vector.(); + this.name_ib = new Vector.(); + this.name_Nz = new Vector.(); + this.name_G1 = new Vector3D(0,0,0); + this.name_Q2 = new Vector3D(0,0,1); super(); if(randomNumbers == null) { @@ -75,20 +75,20 @@ package alternativa.engine3d.effects { } } - this.§_-TK§ = Math.random() * randomNumbersCount; + this.name_TK = Math.random() * randomNumbersCount; } public function get position() : Vector3D { - return this.§_-G1§.clone(); + return this.name_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; + this.name_G1.x = value.x; + this.name_G1.y = value.y; + this.name_G1.z = value.z; + this.name_G1.w = value.w; if(this.alternativa3d::system != null) { this.alternativa3d::setPositionKeys(this.alternativa3d::system.alternativa3d::getTime() - this.alternativa3d::startTime); @@ -97,15 +97,15 @@ package alternativa.engine3d.effects public function get direction() : Vector3D { - return this.§_-Q2§.clone(); + return this.name_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; + this.name_Q2.x = value.x; + this.name_Q2.y = value.y; + this.name_Q2.z = value.z; + this.name_Q2.w = value.w; if(this.alternativa3d::system != null) { this.alternativa3d::setDirectionKeys(this.alternativa3d::system.alternativa3d::getTime() - this.alternativa3d::startTime); @@ -115,15 +115,15 @@ package alternativa.engine3d.effects public function stop() : void { var time:Number = this.alternativa3d::system.alternativa3d::getTime() - this.alternativa3d::startTime; - for(var i:int = 0; i < this.§_-kf§; ) + for(var i:int = 0; i < this.name_kf; ) { - if(time < this.§_-gV§[i]) + if(time < this.name_gV[i]) { break; } i++; } - this.§_-kf§ = i; + this.name_kf = i; } protected function get particleSystem() : ParticleSystem @@ -138,22 +138,22 @@ package alternativa.engine3d.effects protected function random() : Number { - var res:Number = randomNumbers[this.§_-hs§]; - ++this.§_-hs§; - if(this.§_-hs§ == randomNumbersCount) + var res:Number = randomNumbers[this.name_hs]; + ++this.name_hs; + if(this.name_hs == randomNumbersCount) { - this.§_-hs§ = 0; + this.name_hs = 0; } return res; } protected function addKey(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§; + this.name_gV[this.name_kf] = time; + this.name_lB[this.name_kf] = new Vector3D(); + this.name_ib[this.name_kf] = new Vector3D(); + this.name_Nz[this.name_kf] = script; + ++this.name_kf; } protected function setLife(time:Number) : void @@ -163,25 +163,25 @@ package alternativa.engine3d.effects 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; + this.alternativa3d::aabb.minX = this.boundBox.minX * this.scale + this.name_G1.x; + this.alternativa3d::aabb.minY = this.boundBox.minY * this.scale + this.name_G1.y; + this.alternativa3d::aabb.minZ = this.boundBox.minZ * this.scale + this.name_G1.z; + this.alternativa3d::aabb.maxX = this.boundBox.maxX * this.scale + this.name_G1.x; + this.alternativa3d::aabb.maxY = this.boundBox.maxY * this.scale + this.name_G1.y; + this.alternativa3d::aabb.maxZ = this.boundBox.maxZ * this.scale + this.name_G1.z; } alternativa3d function setPositionKeys(time:Number) : void { var pos:Vector3D = null; - for(var i:int = 0; i < this.§_-kf§; ) + for(var i:int = 0; i < this.name_kf; ) { - if(time <= this.§_-gV§[i]) + if(time <= this.name_gV[i]) { - pos = this.§_-lB§[i]; - pos.x = this.§_-G1§.x; - pos.y = this.§_-G1§.y; - pos.z = this.§_-G1§.z; + pos = this.name_lB[i]; + pos.x = this.name_G1.x; + pos.y = this.name_G1.y; + pos.z = this.name_G1.z; } i++; } @@ -190,15 +190,15 @@ package alternativa.engine3d.effects alternativa3d function setDirectionKeys(time:Number) : void { var dir:Vector3D = null; - vector.x = this.§_-Q2§.x; - vector.y = this.§_-Q2§.y; - vector.z = this.§_-Q2§.z; + vector.x = this.name_Q2.x; + vector.y = this.name_Q2.y; + vector.z = this.name_Q2.z; vector.normalize(); - for(var i:int = 0; i < this.§_-kf§; ) + for(var i:int = 0; i < this.name_kf; ) { - if(time <= this.§_-gV§[i]) + if(time <= this.name_gV[i]) { - dir = this.§_-ib§[i]; + dir = this.name_ib[i]; dir.x = vector.x; dir.y = vector.y; dir.z = vector.z; @@ -211,21 +211,21 @@ package alternativa.engine3d.effects { var keyTime:Number = NaN; var script:Function = null; - this.§_-hs§ = this.§_-TK§; - for(var i:int = 0; i < this.§_-kf§; ) + this.name_hs = this.name_TK; + for(var i:int = 0; i < this.name_kf; ) { - keyTime = this.§_-gV§[i]; + keyTime = this.name_gV[i]; if(time < keyTime) { break; } - this.alternativa3d::_-M7 = this.§_-lB§[i]; - this.§_-cF§ = this.§_-ib§[i]; - script = this.§_-Nz§[i]; + this.name_M7 = this.name_lB[i]; + this.name_cF = this.name_ib[i]; + script = this.name_Nz[i]; script.call(this,keyTime,time - keyTime); i++; } - return i < this.§_-kf§ || this.alternativa3d::particleList != null; + return i < this.name_kf || this.alternativa3d::particleList != null; } } } diff --git a/src/alternativa/engine3d/effects/ParticlePrototype.as b/src/alternativa/engine3d/effects/ParticlePrototype.as index 264f041..be59bc3 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 name_gV:Vector. = new Vector.(); - private var §_-0r§:Vector. = new Vector.(); + private var name_0r:Vector. = new Vector.(); - private var §_-4e§:Vector. = new Vector.(); + private var name_4e:Vector. = new Vector.(); - private var §_-Oj§:Vector. = new Vector.(); + private var name_Oj:Vector. = new Vector.(); - private var §_-07§:Vector. = new Vector.(); + private var name_07:Vector. = new Vector.(); - private var §_-3l§:Vector. = new Vector.(); + private var name_3l:Vector. = new Vector.(); - private var §_-7S§:Vector. = new Vector.(); + private var name_7S:Vector. = new Vector.(); - private var §_-Ch§:Vector. = new Vector.(); + private var name_Ch:Vector. = new Vector.(); - private var §_-kf§:int = 0; + private var name_kf:int = 0; public function ParticlePrototype(width:Number, height:Number, atlas:TextureAtlas, animated:Boolean = false, blendSource:String = "sourceAlpha", blendDestination:String = "oneMinusSourceAlpha") { @@ -52,20 +52,20 @@ 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.name_kf - 1; + if(this.name_kf > 0 && time <= this.name_gV[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.name_gV[this.name_kf] = time; + this.name_0r[this.name_kf] = rotation; + this.name_4e[this.name_kf] = scaleX; + this.name_Oj[this.name_kf] = scaleY; + this.name_07[this.name_kf] = red; + this.name_3l[this.name_kf] = green; + this.name_7S[this.name_kf] = blue; + this.name_Ch[this.name_kf] = alpha; + ++this.name_kf; } public function createParticle(effect:ParticleEffect, time:Number, position:Vector3D, rotation:Number = 0, scaleX:Number = 1, scaleY:Number = 1, alpha:Number = 1, firstFrame:int = 0) : void @@ -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.name_kf - 1; + if(this.atlas.diffuse.alternativa3d::_texture != null && this.name_kf > 1 && time >= this.name_gV[0] && time < this.name_gV[b]) { - for(b = 1; b < this.§_-kf§; ) + for(b = 1; b < this.name_kf; ) { - if(time < this.§_-gV§[b]) + if(time < this.name_gV[b]) { systemScale = Number(effect.alternativa3d::system.alternativa3d::scale); effectScale = 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.name_gV[a]) / (this.name_gV[b] - this.name_gV[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.name_M7.x + position.x * effectScale; + cy = effect.name_M7.y + position.y * effectScale; + cz = effect.name_M7.z + position.z * effectScale; particle.x = cx * transform.a + cy * transform.b + cz * transform.c + transform.d; particle.y = cx * transform.e + cy * transform.f + cz * transform.g + transform.h; particle.z = cx * transform.i + cy * transform.j + cz * transform.k + transform.l; - rot = this.§_-0r§[a] + (this.§_-0r§[b] - this.§_-0r§[a]) * t; + rot = this.name_0r[a] + (this.name_0r[b] - this.name_0r[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.name_4e[a] + (this.name_4e[b] - this.name_4e[a]) * t); + particle.height = systemScale * effectScale * scaleY * this.height * (this.name_Oj[a] + (this.name_Oj[b] - this.name_Oj[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_q = 1 / this.atlas.columnsCount; + particle.name_Ts = 1 / this.atlas.rowsCount; + particle.name_ej = col / this.atlas.columnsCount; + particle.name_W5 = row / this.atlas.rowsCount; + particle.red = this.name_07[a] + (this.name_07[b] - this.name_07[a]) * t; + particle.green = this.name_3l[a] + (this.name_3l[b] - this.name_3l[a]) * t; + particle.blue = this.name_7S[a] + (this.name_7S[b] - this.name_7S[a]) * t; + particle.alpha = alpha * (this.name_Ch[a] + (this.name_Ch[b] - this.name_Ch[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.name_kf - 1; + return this.name_gV[lastIndex]; } } } diff --git a/src/alternativa/engine3d/effects/ParticleSystem.as b/src/alternativa/engine3d/effects/ParticleSystem.as index 43cd0fa..ce1cde8 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 name_jW: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_IN:int = 0; public var fogMaxDensity:Number = 0; @@ -68,19 +68,19 @@ package alternativa.engine3d.effects private var counter:int; - private var §_-La§:Number; + private var name_La:Number; - private var §_-p3§:Number; + private var name_p3:Number; - private var §_-ZN§:Vector. = new Vector.(); + private var name_ZN:Vector. = new Vector.(); - private var §_-hr§:int = 0; + private var name_hr:int = 0; private var pause:Boolean = false; - private var §_-pK§:Number; + private var name_pK:Number; - private var §_-L5§:Number = 0; + private var name_L5:Number = 0; public function ParticleSystem() { @@ -91,7 +91,7 @@ package alternativa.engine3d.effects { if(!this.pause) { - this.§_-pK§ = getTimer() * 0.001; + this.name_pK = getTimer() * 0.001; this.pause = true; } } @@ -100,19 +100,19 @@ package alternativa.engine3d.effects { if(this.pause) { - this.§_-L5§ += getTimer() * 0.001 - this.§_-pK§; + this.name_L5 += getTimer() * 0.001 - this.name_pK; this.pause = false; } } public function prevFrame() : void { - this.§_-pK§ -= 0.001; + this.name_pK -= 0.001; } public function nextFrame() : void { - this.§_-pK§ += 0.001; + this.name_pK += 0.001; } public function each(effect:ParticleEffect) : ParticleEffect @@ -125,7 +125,7 @@ package alternativa.engine3d.effects effect.alternativa3d::system = this; effect.alternativa3d::setPositionKeys(0); effect.alternativa3d::setDirectionKeys(0); - effect.alternativa3d::implements = this.alternativa3d::effectList; + effect.name_implements = this.alternativa3d::effectList; this.alternativa3d::effectList = effect; return effect; } @@ -138,14 +138,14 @@ package alternativa.engine3d.effects { return effect; } - effect = effect.alternativa3d::implements; + effect = effect.name_implements; } return null; } alternativa3d function getTime() : Number { - return this.pause ? this.§_-pK§ - this.§_-L5§ : getTimer() * 0.001 - this.§_-L5§; + return this.pause ? this.name_pK - this.name_L5 : getTimer() * 0.001 - this.name_L5; } override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void @@ -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:ParticleEffect = this.alternativa3d::effectList,var prev:ParticleEffect = null; effect != null; ) + for(var effect:ParticleEffect = this.alternativa3d::effectList, prev:ParticleEffect = null; effect != null; ) { effectTime = time - effect.alternativa3d::startTime; if(effectTime <= effect.alternativa3d::lifeTime) @@ -187,33 +187,33 @@ package alternativa.engine3d.effects conflictAnyway ||= effect.boundBox == null; } prev = effect; - effect = effect.alternativa3d::implements; + effect = effect.name_implements; } else if(prev != null) { - prev.alternativa3d::implements = effect.alternativa3d::implements; - effect = prev.alternativa3d::implements; + prev.name_implements = effect.name_implements; + effect = prev.name_implements; } else { - this.alternativa3d::effectList = effect.alternativa3d::implements; + this.alternativa3d::effectList = effect.name_implements; effect = this.alternativa3d::effectList; } } else { prev = effect; - effect = effect.alternativa3d::implements; + effect = effect.name_implements; } } else if(prev != null) { - prev.alternativa3d::implements = effect.alternativa3d::implements; - effect = prev.alternativa3d::implements; + prev.name_implements = effect.name_implements; + effect = prev.name_implements; } else { - this.alternativa3d::effectList = effect.alternativa3d::implements; + this.alternativa3d::effectList = effect.name_implements; 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.name_hr = 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.name_hr == this.name_ZN.length) { - this.§_-ZN§[this.§_-hr§] = new Object3D(); + this.name_ZN[this.name_hr] = new Object3D(); } - var object:Object3D = this.§_-ZN§[this.§_-hr§]; - ++this.§_-hr§; - object.alternativa3d::localToCameraTransform.l = (this.§_-La§ + this.§_-p3§) / 2; + var object:Object3D = this.name_ZN[this.name_hr]; + ++this.name_hr; + object.alternativa3d::localToCameraTransform.l = (this.name_La + this.name_p3) / 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_IN >> 16 & 0xFF) / 255,(this.name_IN >> 8 & 0xFF) / 255,(this.name_IN & 0xFF) / 255,this.fogMaxDensity); this.drawUnit.alternativa3d::setFragmentConstantsFromNumbers(1,this.fogNear,this.fogFar - this.fogNear,0,1); this.drawUnit.alternativa3d::setTextureAt(0,this.diffuse); if(this.opacity != null) @@ -349,15 +349,15 @@ package alternativa.engine3d.effects this.blendSource = particle.blendSource; this.blendDestination = particle.blendDestination; this.counter = 0; - this.§_-La§ = particle.z; + this.name_La = 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_q,particle.name_Ts,particle.name_ej,particle.name_W5); this.drawUnit.alternativa3d::setVertexConstantsFromNumbers(offset++,particle.red,particle.green,particle.blue,particle.alpha); ++this.counter; - this.§_-p3§ = particle.z; + this.name_p3 = particle.z; last = particle; particle = particle.next; } diff --git a/src/alternativa/engine3d/lights/OmniLight.as b/src/alternativa/engine3d/lights/OmniLight.as index 026a49e..c0607c6 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(name_cl.a * name_cl.a + name_cl.e * name_cl.e + name_cl.i * name_cl.i)); + rScale += Math.sqrt(name_cl.b * name_cl.b + name_cl.f * name_cl.f + name_cl.j * name_cl.j); + rScale += Math.sqrt(name_cl.c * name_cl.c + name_cl.g * name_cl.g + name_cl.k * name_cl.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(name_cl.d); + var py:Number = Number(name_cl.h); + var pz:Number = Number(name_cl.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 5cfd7c6..b5946aa 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 = name_cl.a * w; + var ay:Number = name_cl.e * w; + var az:Number = name_cl.i * w; + var bx:Number = name_cl.b * l; + var by:Number = name_cl.f * l; + var bz:Number = name_cl.j * l; + var cx:Number = name_cl.c * h; + var cy:Number = name_cl.g * h; + var cz:Number = name_cl.k * h; var objectBB:BoundBox = targetObject.boundBox; var hw:Number = (objectBB.maxX - objectBB.minX) * 0.5; var hl:Number = (objectBB.maxY - objectBB.minY) * 0.5; var hh:Number = (objectBB.maxZ - objectBB.minZ) * 0.5; - var dx:Number = alternativa3d::_-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 = name_cl.a * (minX + w) + name_cl.b * (minY + l) + name_cl.c * (minZ + h) + name_cl.d - objectBB.minX - hw; + var dy:Number = name_cl.e * (minX + w) + name_cl.f * (minY + l) + name_cl.g * (minZ + h) + name_cl.h - objectBB.minY - hl; + var dz:Number = name_cl.i * (minX + w) + name_cl.j * (minY + l) + name_cl.k * (minZ + h) + name_cl.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 = name_cl.a * ax + name_cl.e * ay + name_cl.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 = name_cl.a * bx + name_cl.e * by + name_cl.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 = name_cl.a * cx + name_cl.e * cy + name_cl.i * cz; if(pro >= 0) { sum += pro; @@ -235,31 +235,31 @@ package alternativa.engine3d.lights { sum -= pro; } - if(alternativa3d::_-cl.a >= 0) + if(name_cl.a >= 0) { - sum += alternativa3d::_-cl.a * hw; + sum += name_cl.a * hw; } else { - sum -= alternativa3d::_-cl.a * hw; + sum -= name_cl.a * hw; } - if(alternativa3d::_-cl.e >= 0) + if(name_cl.e >= 0) { - sum += alternativa3d::_-cl.e * hl; + sum += name_cl.e * hl; } else { - sum -= alternativa3d::_-cl.e * hl; + sum -= name_cl.e * hl; } - if(alternativa3d::_-cl.i >= 0) + if(name_cl.i >= 0) { - sum += alternativa3d::_-cl.i * hh; + sum += name_cl.i * hh; } else { - sum -= alternativa3d::_-cl.i * hh; + sum -= name_cl.i * hh; } - pro = alternativa3d::_-cl.a * dx + alternativa3d::_-cl.e * dy + alternativa3d::_-cl.i * dz; + pro = name_cl.a * dx + name_cl.e * dy + name_cl.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 = name_cl.b * ax + name_cl.f * ay + name_cl.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 = name_cl.b * bx + name_cl.f * by + name_cl.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 = name_cl.b * cx + name_cl.f * cy + name_cl.j * cz; if(pro >= 0) { sum += pro; @@ -300,31 +300,31 @@ package alternativa.engine3d.lights { sum -= pro; } - if(alternativa3d::_-cl.b >= 0) + if(name_cl.b >= 0) { - sum += alternativa3d::_-cl.b * hw; + sum += name_cl.b * hw; } else { - sum -= alternativa3d::_-cl.b * hw; + sum -= name_cl.b * hw; } - if(alternativa3d::_-cl.f >= 0) + if(name_cl.f >= 0) { - sum += alternativa3d::_-cl.f * hl; + sum += name_cl.f * hl; } else { - sum -= alternativa3d::_-cl.f * hl; + sum -= name_cl.f * hl; } - if(alternativa3d::_-cl.j >= 0) + if(name_cl.j >= 0) { - sum += alternativa3d::_-cl.j * hh; + sum += name_cl.j * hh; } else { - sum -= alternativa3d::_-cl.j * hh; + sum -= name_cl.j * hh; } - pro = alternativa3d::_-cl.b * dx + alternativa3d::_-cl.f * dy + alternativa3d::_-cl.j * dz; + pro = name_cl.b * dx + name_cl.f * dy + name_cl.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 = name_cl.c * ax + name_cl.g * ay + name_cl.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 = name_cl.c * bx + name_cl.g * by + name_cl.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 = name_cl.c * cx + name_cl.g * cy + name_cl.k * cz; if(pro >= 0) { sum += pro; @@ -362,31 +362,31 @@ package alternativa.engine3d.lights { sum -= pro; } - if(alternativa3d::_-cl.c >= 0) + if(name_cl.c >= 0) { - sum += alternativa3d::_-cl.c * hw; + sum += name_cl.c * hw; } else { - sum -= alternativa3d::_-cl.c * hw; + sum -= name_cl.c * hw; } - if(alternativa3d::_-cl.g >= 0) + if(name_cl.g >= 0) { - sum += alternativa3d::_-cl.g * hl; + sum += name_cl.g * hl; } else { - sum -= alternativa3d::_-cl.g * hl; + sum -= name_cl.g * hl; } - if(alternativa3d::_-cl.k >= 0) + if(name_cl.k >= 0) { - sum += alternativa3d::_-cl.k * hh; + sum += name_cl.k * hh; } else { - sum -= alternativa3d::_-cl.k * hh; + sum -= name_cl.k * hh; } - pro = alternativa3d::_-cl.c * dx + alternativa3d::_-cl.g * dy + alternativa3d::_-cl.k * dz; + pro = name_cl.c * dx + name_cl.g * dy + name_cl.k * dz; if(pro >= 0) { sum -= pro; diff --git a/src/alternativa/engine3d/loaders/ParserA3D.as b/src/alternativa/engine3d/loaders/ParserA3D.as index d4eead0..d0fc502 100644 --- a/src/alternativa/engine3d/loaders/ParserA3D.as +++ b/src/alternativa/engine3d/loaders/ParserA3D.as @@ -80,9 +80,9 @@ package alternativa.engine3d.loaders private var protocol:Protocol; - private var §_-gk§:Object; + private var name_gk:Object; - private var §_-Y8§:Boolean = false; + private var name_Y8:Boolean = false; public function ParserA3D() { @@ -279,7 +279,7 @@ package alternativa.engine3d.loaders var sourceSurface:A3DSurface = null; var destSurface:A3D2Surface = null; var dest:Vector. = new Vector.(); - for(var i:int = 0,var count:int = int(source.length); i < count; i++) + for(var i:int = 0, count:int = int(source.length); i < count; i++) { sourceSurface = source[i]; destSurface = new A3D2Surface(sourceSurface.indexBegin,idToInt(sourceSurface.materialId),sourceSurface.numTriangles); @@ -325,7 +325,7 @@ package alternativa.engine3d.loaders private function init() : void { - if(this.§_-Y8§) + if(this.name_Y8) { return; } @@ -341,7 +341,7 @@ package alternativa.engine3d.loaders new platform.client.a3d.osgi.Activator().start(osgi); new platform.clients.fp10.libraries.alternativaprotocol.Activator().start(osgi); this.protocol = Protocol(osgi.getService(IProtocol)); - this.§_-Y8§ = true; + this.name_Y8 = true; } private function parseVersion1(input:ByteArray) : void @@ -422,7 +422,7 @@ package alternativa.engine3d.loaders this.objects = new Vector.(); this.maps = new Dictionary(); this.materials = new Dictionary(); - this.§_-gk§ = new Dictionary(); + this.name_gk = new Dictionary(); for each(a3DJoint in a3d.joints) { resJoint = new Joint(); @@ -579,7 +579,7 @@ package alternativa.engine3d.loaders var j:int = 0; var jcount:int = 0; var result:Vector.> = new Vector.>(); - for(var i:int = 0,var count:int = int(source.length); i < count; i++) + for(var i:int = 0, count:int = int(source.length); i < count; i++) { vector = source[i]; resultVector = new Vector.(); @@ -743,7 +743,7 @@ package alternativa.engine3d.loaders { key += "v" + id.toString(); } - geometry = this.§_-gk§[key]; + geometry = this.name_gk[key]; if(geometry != null) { return geometry; @@ -796,7 +796,7 @@ package alternativa.engine3d.loaders geometry.alternativa3d::_vertexStreams[0].data = byteArray; } geometry.alternativa3d::_numVertices = buffers.length > 0 ? int(vertexCount) : 0; - this.§_-gk§[key] = geometry; + this.name_gk[key] = geometry; return geometry; } diff --git a/src/alternativa/engine3d/loaders/ParserCollada.as b/src/alternativa/engine3d/loaders/ParserCollada.as index 7cd63da..c9be8df 100644 --- a/src/alternativa/engine3d/loaders/ParserCollada.as +++ b/src/alternativa/engine3d/loaders/ParserCollada.as @@ -24,9 +24,9 @@ package alternativa.engine3d.loaders public var materials:Vector.; - public var §_-eL§:Vector.; + public var name_eL:Vector.; - private var §_-W6§:Dictionary; + private var name_W6:Dictionary; public function ParserCollada() { @@ -48,7 +48,7 @@ package alternativa.engine3d.loaders var t:int = 0; var numTracks:int = 0; var track:Track = null; - for(var i:int = 0,var count:int = int(nodes.length); i < count; i++) + for(var i:int = 0, count:int = int(nodes.length); i < count; i++) { node = nodes[i]; animation = node.parseAnimation(); @@ -73,14 +73,14 @@ package alternativa.engine3d.loaders this.objects = null; this.hierarchy = null; this.lights = null; - this.§_-eL§ = null; + this.name_eL = null; this.materials = null; - this.§_-W6§ = null; + this.name_W6 = null; } public function getObjectLayer(object:Object3D) : String { - return this.§_-W6§[object]; + return this.name_W6[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.(); + this.name_eL = new Vector.(); this.materials = new Vector.(); - this.§_-W6§ = new Dictionary(true); + this.name_W6 = 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.name_eL.push(animatedObject.animation); } if(Boolean(layer)) { - this.§_-W6§[object] = layer; + this.name_W6[object] = layer; } return object; } @@ -152,7 +152,7 @@ package alternativa.engine3d.loaders { var child:DaeNode = null; var nodes:Vector. = node.nodes; - for(var i:int = 0,var count:int = int(nodes.length); i < count; ) + for(var i:int = 0, count:int = int(nodes.length); i < count; ) { child = nodes[i]; child.parse(); @@ -173,7 +173,7 @@ package alternativa.engine3d.loaders { var node:DaeNode = null; var container:Object3D = null; - for(var i:int = 0,var count:int = int(nodes.length); i < count; ) + for(var i:int = 0, count:int = int(nodes.length); i < count; ) { node = nodes[i]; node.parse(); @@ -301,7 +301,7 @@ package alternativa.engine3d.loaders var basePart:String = null; var baseParts:Array = base.split("/"); var parts:Array = path.split("/"); - for(var i:int = 0,var count:int = int(parts.length); i < count; i++) + for(var i:int = 0, count:int = int(parts.length); i < count; i++) { part = parts[i]; if(part == "..") @@ -425,9 +425,9 @@ package alternativa.engine3d.loaders { var animation:AnimationClip = null; var objects:Array = null; - for each(animation in this.§_-eL§) + for each(animation in this.name_eL) { - objects = animation.alternativa3d::_-Kq; + objects = animation.name_Kq; 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..f46afed 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 name_3m:String = "diffuse"; private var textureMaterial:TextureMaterial; - private var §_-h7§:FillMaterial; + private var name_h7: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.name_3m]; if(colorO != null) { - if(this.§_-h7§ == null) + if(this.name_h7 == null) { - this.§_-h7§ = new FillMaterial(int(colorO)); + this.name_h7 = new FillMaterial(int(colorO)); } else { - this.§_-h7§.color = int(colorO); + this.name_h7.color = int(colorO); } - this.§_-h7§.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority); + this.name_h7.alternativa3d::collectDraws(camera,surface,geometry,lights,lightsLength,objectRenderPriority); } else { - map = this.textures[this.§_-3m§]; + map = this.textures[this.name_3m]; 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 334d518..f477eec 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeChannel.as +++ b/src/alternativa/engine3d/loaders/collada/DaeChannel.as @@ -37,7 +37,7 @@ package alternativa.engine3d.loaders.collada public var tracks:Vector.; - public var §_-dS§:String = "undefined"; + public var name_dS:String = "undefined"; public var animName:String; @@ -107,7 +107,7 @@ package alternativa.engine3d.loaders.collada } this.animName = node.animName; var children:XMLList = node.data.children(); - for(var i:int = 0,var count:int = int(children.length()); i < count; ) + for(var i:int = 0, count:int = int(children.length()); i < count; ) { child = children[i]; attr = child.@sid[0]; @@ -129,13 +129,13 @@ package alternativa.engine3d.loaders.collada switch(componentName) { case "X": - this.§_-dS§ = PARAM_TRANSLATE_X; + this.name_dS = PARAM_TRANSLATE_X; break loop1; case "Y": - this.§_-dS§ = PARAM_TRANSLATE_Y; + this.name_dS = PARAM_TRANSLATE_Y; break loop1; case "Z": - this.§_-dS§ = PARAM_TRANSLATE_Z; + this.name_dS = 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_dS = PARAM_ROTATION_X; break loop1; case 1: - this.§_-dS§ = PARAM_ROTATION_Y; + this.name_dS = PARAM_ROTATION_Y; break loop1; case 2: - this.§_-dS§ = PARAM_ROTATION_Z; + this.name_dS = PARAM_ROTATION_Z; } break; case "scale": switch(componentName) { case "X": - this.§_-dS§ = PARAM_SCALE_X; + this.name_dS = PARAM_SCALE_X; break loop1; case "Y": - this.§_-dS§ = PARAM_SCALE_Y; + this.name_dS = PARAM_SCALE_Y; break loop1; case "Z": - this.§_-dS§ = PARAM_SCALE_Z; + this.name_dS = PARAM_SCALE_Z; } } } @@ -171,13 +171,13 @@ package alternativa.engine3d.loaders.collada switch(transformationName) { case "translate": - this.§_-dS§ = PARAM_TRANSLATE; + this.name_dS = PARAM_TRANSLATE; break; case "scale": - this.§_-dS§ = PARAM_SCALE; + this.name_dS = PARAM_SCALE; break; case "matrix": - this.§_-dS§ = PARAM_MATRIX; + this.name_dS = PARAM_MATRIX; } } } @@ -191,35 +191,35 @@ package alternativa.engine3d.loaders.collada if(sampler != null) { sampler.parse(); - if(this.§_-dS§ == PARAM_MATRIX) + if(this.name_dS == PARAM_MATRIX) { this.tracks = Vector.([sampler.parseTransformationTrack(this.animName)]); return; } - if(this.§_-dS§ == PARAM_TRANSLATE) + if(this.name_dS == PARAM_TRANSLATE) { this.tracks = sampler.parsePointsTracks(this.animName,"x","y","z"); return; } - if(this.§_-dS§ == PARAM_SCALE) + if(this.name_dS == 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_dS == PARAM_ROTATION_X || this.name_dS == PARAM_ROTATION_Y || this.name_dS == PARAM_ROTATION_Z) { - track = sampler.parseNumbersTrack(this.animName,this.§_-dS§); + track = sampler.parseNumbersTrack(this.animName,this.name_dS); toRad = Math.PI / 180; - for(key = track.alternativa3d::_-ku; key != null; key = key.alternativa3d::next) + for(key = track.name_ku; key != null; key = key.alternativa3d::next) { - key.alternativa3d::_-4O *= toRad; + key.name_4O *= toRad; } 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_dS == PARAM_TRANSLATE_X || this.name_dS == PARAM_TRANSLATE_Y || this.name_dS == PARAM_TRANSLATE_Z || this.name_dS == PARAM_SCALE_X || this.name_dS == PARAM_SCALE_Y || this.name_dS == PARAM_SCALE_Z) { - this.tracks = Vector.([sampler.parseNumbersTrack(this.animName,this.§_-dS§)]); + this.tracks = Vector.([sampler.parseNumbersTrack(this.animName,this.name_dS)]); } } else diff --git a/src/alternativa/engine3d/loaders/collada/DaeController.as b/src/alternativa/engine3d/loaders/collada/DaeController.as index 1f86a88..aa29a91 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeController.as +++ b/src/alternativa/engine3d/loaders/collada/DaeController.as @@ -17,25 +17,25 @@ package alternativa.engine3d.loaders.collada public class DaeController extends DaeElement { - private var §_-A6§:Vector.>; + private var name_A6:Vector.>; - private var §_-2j§:Array; + private var name_2j:Array; private var indices:Array; - private var §_-4h§:DaeInput; + private var name_4h:DaeInput; - private var §_-NK§:DaeInput; + private var name_NK:DaeInput; - private var §_-5O§:int; + private var name_5O:int; private var geometry:Geometry; private var primitives:Vector.; - private var §_-1U§:int = 0; + private var name_1U:int = 0; - private var §_-I§:Vector.; + private var name_I:Vector.; public function DaeController(data:XML, document:DaeDocument) { @@ -78,7 +78,7 @@ package alternativa.engine3d.loaders.collada { return false; } - this.§_-2j§ = parseIntsArray(vcountsXML); + this.name_2j = 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.name_2j.length; ) { - count = int(this.§_-2j§[i]); - if(this.§_-1U§ < count) + count = int(this.name_2j[i]); + if(this.name_1U < count) { - this.§_-1U§ = count; + this.name_1U = count; } i++; } var geom:DaeGeometry = this.daeGeometry; - this.§_-I§ = this.getBindShapeMatrix(); + this.name_I = this.getBindShapeMatrix(); if(geom != null) { geom.parse(); - vertices = geom.§_-FV§; + vertices = geom.name_FV; source = geom.geometry; - localMaxJointsPerVertex = this.§_-1U§ % 2 != 0 ? this.§_-1U§ + 1 : this.§_-1U§; + localMaxJointsPerVertex = this.name_1U % 2 != 0 ? this.name_1U + 1 : this.name_1U; 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.name_I[0] + y * this.name_I[1] + z * this.name_I[2] + this.name_I[3]); + data.writeFloat(x * this.name_I[4] + y * this.name_I[5] + z * this.name_I[6] + this.name_I[7]); + data.writeFloat(x * this.name_I[8] + y * this.name_I[9] + z * this.name_I[10] + this.name_I[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.name_4h.offset; + var weightsOffset:int = this.name_NK.offset; + var weightsSource:DaeSource = this.name_NK.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_Eq]; if(vec == null) { - vec = verticesDict[vertex.§_-Eq§] = new Vector.(); + vec = verticesDict[vertex.name_Eq] = new Vector.(); } - vec.push(vertex.§_-AR§); + vec.push(vertex.name_AR); } } var vertexIndex:int = 0; - for(i = 0,count = int(this.§_-2j§.length); i < count; i++) + for(i = 0,count = int(this.name_2j.length); i < count; i++) { - jointsPerVertex = int(this.§_-2j§[i]); + jointsPerVertex = int(this.name_2j[i]); vertexOutIndices = verticesDict[i]; for(j = 0; j < vertexOutIndices.length; j++) { byteArray.position = vertexOutIndices[j] * localMaxJointsPerVertex * 8; for(k = 0; k < jointsPerVertex; k++) { - index = this.§_-5O§ * (vertexIndex + k); + index = this.name_5O * (vertexIndex + k); jointIndex = int(this.indices[int(index + jointsOffset)]); if(jointIndex >= 0) { @@ -243,7 +243,7 @@ package alternativa.engine3d.loaders.collada var offset:int = 0; var inputsList:XMLList = data.skin.vertex_weights.input; var maxInputOffset:int = 0; - for(var i:int = 0,var count:int = int(inputsList.length()); i < count; offset = input.offset,maxInputOffset = offset > maxInputOffset ? offset : maxInputOffset,i++) + for(var i:int = 0, count:int = int(inputsList.length()); i < count; offset = input.offset,maxInputOffset = offset > maxInputOffset ? offset : maxInputOffset,i++) { input = new DaeInput(inputsList[i],document); semantic = input.semantic; @@ -254,20 +254,20 @@ package alternativa.engine3d.loaders.collada switch(semantic) { case "JOINT": - if(this.§_-4h§ == null) + if(this.name_4h == null) { - this.§_-4h§ = input; + this.name_4h = input; } break; case "WEIGHT": - if(this.§_-NK§ == null) + if(this.name_NK == null) { - this.§_-NK§ = input; + this.name_NK = input; } break; } } - this.§_-5O§ = maxInputOffset + 1; + this.name_5O = 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.name_A6 = new Vector.>(count); for(i = 0; i < count; i++) { index = stride * i; matrix = new Vector.(16); - this.§_-A6§[i] = matrix; + this.name_A6[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.name_I = this.getBindShapeMatrix(); + numJoints = int(this.name_A6.length); + skin = new Skin(this.name_1U,numJoints); skin.geometry = this.geometry; joints = this.addJointsToSkin(skin,topmostJoints,this.findNodes(skeletons)); this.setJointsBindMatrices(joints); - skin.§_-WA§ = this.collectRenderedJoints(joints,numJoints); + skin.name_WA = this.collectRenderedJoints(joints,numJoints); if(this.primitives != null) { for(i = 0; i < this.primitives.length; i++) @@ -376,7 +376,7 @@ package alternativa.engine3d.loaders.collada } var result:AnimationClip = new AnimationClip(); var resultObjects:Array = [skin]; - for(var i:int = 0,var count:int = int(joints.length); i < count; i++) + for(var i:int = 0, count:int = int(joints.length); i < count; i++) { animatedObject = joints[i]; clip = animatedObject.animation; @@ -395,14 +395,14 @@ package alternativa.engine3d.loaders.collada object.name = animatedObject.jointNode.animName; resultObjects.push(object); } - result.alternativa3d::_-Kq = resultObjects; + result.name_Kq = resultObjects; return result; } private function hasJointsAnimation(joints:Vector.) : Boolean { var object:DaeObject = null; - for(var i:int = 0,var count:int = int(joints.length); i < count; ) + for(var i:int = 0, count:int = int(joints.length); i < count; ) { object = joints[i]; if(object.animation != null) @@ -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, count:int = int(this.name_A6.length); i < count; i++) { animatedJoint = animatedJoints[i]; - bindMatrix = this.§_-A6§[i]; + bindMatrix = this.name_A6[i]; Joint(animatedJoint.object).alternativa3d::setBindPoseMatrix(bindMatrix); } } @@ -472,7 +472,7 @@ package alternativa.engine3d.loaders.collada var child:DaeNode = null; var joint:Joint = null; var children:Vector. = parentNode.nodes; - for(var i:int = 0,var count:int = int(children.length); i < count; ) + for(var i:int = 0, count:int = int(children.length); i < count; ) { child = children[i]; if(child in nodes) @@ -503,7 +503,7 @@ package alternativa.engine3d.loaders.collada { var child:DaeNode = null; var children:Vector. = parentNode.nodes; - for(var i:int = 0,var count:int = int(children.length); i < count; ) + for(var i:int = 0, count:int = int(children.length); i < count; ) { child = children[i]; if(child in nodes || this.hasJointInDescendants(child,nodes)) diff --git a/src/alternativa/engine3d/loaders/collada/DaeDocument.as b/src/alternativa/engine3d/loaders/collada/DaeDocument.as index c99aa64..284c998 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 name_DR:Object; internal var arrays:Object; @@ -24,9 +24,9 @@ package alternativa.engine3d.loaders.collada internal var effects:Object; - internal var §_-DW§:Object; + internal var name_DW:Object; - internal var §_-GB§:Object; + internal var name_GB: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.name_DR = 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.name_DR[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.name_DW = 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.name_DW[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.name_GB = 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.name_GB[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.name_DR[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.name_DW[this.getLocalID(url)]; } public function findSampler(url:XML) : DaeSampler { - return this.§_-GB§[this.getLocalID(url)]; + return this.name_GB[this.getLocalID(url)]; } } } diff --git a/src/alternativa/engine3d/loaders/collada/DaeEffect.as b/src/alternativa/engine3d/loaders/collada/DaeEffect.as index 0e2965f..dc9d74c 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 name_3x:Object; - private var §_-El§:Object; + private var name_El:Object; - private var §_-3H§:Object; + private var name_3H: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.name_3x = new Object(); for each(element in data.newparam) { param = new DaeParam(element,document); - this.§_-3x§[param.sid] = param; + this.name_3x[param.sid] = param; } - this.§_-El§ = new Object(); + this.name_El = new Object(); for each(element in data.profile_COMMON.newparam) { param = new DaeParam(element,document); - this.§_-El§[param.sid] = param; + this.name_El[param.sid] = param; } - this.§_-3H§ = new Object(); + this.name_3H = 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.name_3H[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.name_3H[name]; if(param != null) { return param; } - param = this.§_-El§[name]; + param = this.name_El[name]; if(param != null) { return param; } - return this.§_-3x§[name]; + return this.name_3x[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..3da304f 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 name_Ba: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.name_Ba < 0) { - this.§_-Ba§ = this.parseImplementation() ? 1 : 0; - return this.§_-Ba§ != 0; + this.name_Ba = this.parseImplementation() ? 1 : 0; + return this.name_Ba != 0; } - return this.§_-Ba§ != 0; + return this.name_Ba != 0; } protected function parseImplementation() : Boolean @@ -57,7 +57,7 @@ package alternativa.engine3d.loaders.collada { var value:String = null; var arr:Array = element.text().toString().split(/\s+/); - for(var i:int = 0,var count:int = int(arr.length); i < count; i++) + for(var i:int = 0, count:int = int(arr.length); i < count; i++) { value = arr[i]; if(value.indexOf(",") != -1) @@ -73,7 +73,7 @@ package alternativa.engine3d.loaders.collada { var value:String = null; var arr:Array = element.text().toString().split(/\s+/); - for(var i:int = 0,var count:int = int(arr.length); i < count; i++) + for(var i:int = 0, count:int = int(arr.length); i < count; i++) { value = arr[i]; arr[i] = parseInt(value,10); diff --git a/src/alternativa/engine3d/loaders/collada/DaeGeometry.as b/src/alternativa/engine3d/loaders/collada/DaeGeometry.as index fba812d..42b1d79 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 name_FV: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_E6.numbers.length / this.vertices.name_E6.stride; this.geometry = new Geometry(); - this.§_-FV§ = new Vector.(numVertices); + this.name_FV = 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.name_FV.length); + channels |= p.fillGeometry(this.geometry,this.name_FV); } i++; } @@ -105,14 +105,14 @@ package alternativa.engine3d.loaders.collada i++; } this.geometry.addVertexStream(attributes); - numVertices = int(this.§_-FV§.length); + numVertices = int(this.name_FV.length); data = new ByteArray(); data.endian = Endian.LITTLE_ENDIAN; numMappings = int(attributes.length); data.length = 4 * numMappings * numVertices; for(i = 0; i < numVertices; ) { - vertex = this.§_-FV§[i]; + vertex = this.name_FV[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_hC != 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_hC.x); + data.writeFloat(vertex.name_hC.y); + data.writeFloat(vertex.name_hC.z); + data.writeFloat(vertex.name_hC.w); } for(j = 0; j < vertex.uvs.length; ) { @@ -153,7 +153,7 @@ package alternativa.engine3d.loaders.collada var _loc5_:DaePrimitive = null; this.primitives = new Vector.(); var children:XMLList = data.mesh.children(); - for(var i:int = 0,var count:int = int(children.length()); i < count; ) + for(var i:int = 0, count:int = int(children.length()); i < count; ) { child = children[i]; switch(child.localName()) diff --git a/src/alternativa/engine3d/loaders/collada/DaeNode.as b/src/alternativa/engine3d/loaders/collada/DaeNode.as index 56f2a14..0c8c842 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeNode.as +++ b/src/alternativa/engine3d/loaders/collada/DaeNode.as @@ -23,7 +23,7 @@ package alternativa.engine3d.loaders.collada private var channels:Vector.; - private var §_-DE§:Vector.; + private var name_DE: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.name_DE == null) { - this.§_-DE§ = new Vector.(); + this.name_DE = new Vector.(); } - this.§_-DE§.push(controller); + this.name_DE.push(controller); } override protected function parseImplementation() : Boolean @@ -131,7 +131,7 @@ package alternativa.engine3d.loaders.collada var instance:DaeInstanceMaterial = null; var instances:Object = new Object(); var list:XMLList = geometry.bind_material.technique_common.instance_material; - for(var i:int = 0,var count:int = int(list.length()); i < count; i++) + for(var i:int = 0, count:int = int(list.length()); i < count; i++) { instance = new DaeInstanceMaterial(list[i],document); instances[instance.symbol] = instance; @@ -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.name_DE == 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, count:int = int(this.name_DE.length); i < count; ) { - instanceController = this.§_-DE§[i]; + instanceController = this.name_DE[i]; instanceController.parse(); skinAndAnimatedJoints = instanceController.parseSkin(this.parseInstanceMaterials(instanceController.data)); if(skinAndAnimatedJoints != null) @@ -475,7 +475,7 @@ package alternativa.engine3d.loaders.collada private function createClip(tracks:Vector.) : AnimationClip { var clip:AnimationClip = new AnimationClip(); - for(var i:int = 0,var count:int = int(tracks.length); i < count; i++) + for(var i:int = 0, count:int = int(tracks.length); i < count; i++) { clip.addTrack(tracks[i]); } @@ -484,7 +484,7 @@ package alternativa.engine3d.loaders.collada private function addTracksToClip(clip:AnimationClip, tracks:Vector.) : void { - for(var i:int = 0,var count:int = int(tracks.length); i < count; i++) + for(var i:int = 0, count:int = int(tracks.length); i < count; i++) { clip.addTrack(tracks[i]); } @@ -494,22 +494,22 @@ package alternativa.engine3d.loaders.collada { var channel:DaeChannel = null; var result:Boolean = false; - for(var i:int = 0,var count:int = int(this.channels.length); i < count; ) + for(var i:int = 0, count:int = int(this.channels.length); i < count; ) { channel = this.channels[i]; channel.parse(); - result = channel.§_-dS§ == DaeChannel.PARAM_MATRIX; - result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE; - result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_X; - result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_Y; - result ||= channel.§_-dS§ == DaeChannel.PARAM_TRANSLATE_Z; - result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_X; - result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_Y; - result ||= channel.§_-dS§ == DaeChannel.PARAM_ROTATION_Z; - result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE; - result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_X; - result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_Y; - result ||= channel.§_-dS§ == DaeChannel.PARAM_SCALE_Z; + result = channel.name_dS == DaeChannel.PARAM_MATRIX; + result ||= channel.name_dS == DaeChannel.PARAM_TRANSLATE; + result ||= channel.name_dS == DaeChannel.PARAM_TRANSLATE_X; + result ||= channel.name_dS == DaeChannel.PARAM_TRANSLATE_Y; + result ||= channel.name_dS == DaeChannel.PARAM_TRANSLATE_Z; + result ||= channel.name_dS == DaeChannel.PARAM_ROTATION_X; + result ||= channel.name_dS == DaeChannel.PARAM_ROTATION_Y; + result ||= channel.name_dS == DaeChannel.PARAM_ROTATION_Z; + result ||= channel.name_dS == DaeChannel.PARAM_SCALE; + result ||= channel.name_dS == DaeChannel.PARAM_SCALE_X; + result ||= channel.name_dS == DaeChannel.PARAM_SCALE_Y; + result ||= channel.name_dS == DaeChannel.PARAM_SCALE_Z; if(result) { return true; @@ -522,11 +522,11 @@ package alternativa.engine3d.loaders.collada private function getChannel(param:String) : DaeChannel { var channel:DaeChannel = null; - for(var i:int = 0,var count:int = int(this.channels.length); i < count; ) + for(var i:int = 0, count:int = int(this.channels.length); i < count; ) { channel = this.channels[i]; channel.parse(); - if(channel.§_-dS§ == param) + if(channel.name_dS == param) { return channel; } @@ -537,7 +537,7 @@ package alternativa.engine3d.loaders.collada private function concatTracks(source:Vector., dest:Vector.) : void { - for(var i:int = 0,var count:int = int(source.length); i < count; i++) + for(var i:int = 0, count:int = int(source.length); i < count; i++) { dest.push(source[i]); } diff --git a/src/alternativa/engine3d/loaders/collada/DaePrimitive.as b/src/alternativa/engine3d/loaders/collada/DaePrimitive.as index 9eda711..80f9790 100644 --- a/src/alternativa/engine3d/loaders/collada/DaePrimitive.as +++ b/src/alternativa/engine3d/loaders/collada/DaePrimitive.as @@ -14,19 +14,19 @@ package alternativa.engine3d.loaders.collada internal static const TEXCOORDS:Vector. = Vector.([8,16,32,64,128,256,512,1024]); - internal var §_-2g§:DaeInput; + internal var name_2g:DaeInput; - internal var §_-aL§:Vector.; + internal var name_aL:Vector.; - internal var §_-Fl§:DaeInput; + internal var name_Fl:DaeInput; - internal var §_-jU§:Vector.; + internal var name_jU:Vector.; - internal var §_-ly§:Vector.; + internal var name_ly:Vector.; internal var indices:Vector.; - internal var §_-5O§:int; + internal var name_5O:int; public var indexBegin:int; @@ -54,12 +54,12 @@ package alternativa.engine3d.loaders.collada var input:DaeInput = null; var semantic:String = null; var offset:int = 0; - this.§_-aL§ = new Vector.(); - this.§_-ly§ = new Vector.(); - this.§_-jU§ = new Vector.(); + this.name_aL = new Vector.(); + this.name_ly = new Vector.(); + this.name_jU = 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 = input.offset,maxInputOffset = offset > maxInputOffset ? offset : maxInputOffset,i++) + for(var i:int = 0, count:int = int(inputsList.length()); i < count; offset = input.offset,maxInputOffset = offset > maxInputOffset ? offset : maxInputOffset,i++) { input = new DaeInput(inputsList[i],document); semantic = input.semantic; @@ -70,29 +70,29 @@ package alternativa.engine3d.loaders.collada switch(semantic) { case "VERTEX": - if(this.§_-2g§ == null) + if(this.name_2g == null) { - this.§_-2g§ = input; + this.name_2g = input; } break; case "TEXCOORD": - this.§_-aL§.push(input); + this.name_aL.push(input); break; case "NORMAL": - if(this.§_-Fl§ == null) + if(this.name_Fl == null) { - this.§_-Fl§ = input; + this.name_Fl = input; } break; case "TEXTANGENT": - this.§_-ly§.push(input); + this.name_ly.push(input); break; case "TEXBINORMAL": - this.§_-jU§.push(input); + this.name_jU.push(input); break; } } - this.§_-5O§ = maxInputOffset + 1; + this.name_5O = maxInputOffset + 1; } private function parseIndices() : void @@ -154,7 +154,7 @@ package alternativa.engine3d.loaders.collada for(i = 0,count = int(vcount.length); i < count; i++) { verticesCount = vcount[i]; - attributesCount = verticesCount * this.§_-5O§; + attributesCount = verticesCount * this.name_5O; if(verticesCount == 3) { j = 0; @@ -170,21 +170,21 @@ package alternativa.engine3d.loaders.collada { for(j = 1; j < verticesCount - 1; ) { - for(k = 0; k < this.§_-5O§; k++,indexOut++) + for(k = 0; k < this.name_5O; k++,indexOut++) { res[indexOut] = input[int(indexIn + k)]; } - for(k = 0; k < this.§_-5O§; k++,indexOut++) + for(k = 0; k < this.name_5O; k++,indexOut++) { - res[indexOut] = input[int(indexIn + this.§_-5O§ * j + k)]; + res[indexOut] = input[int(indexIn + this.name_5O * j + k)]; } - for(k = 0; k < this.§_-5O§; k++,indexOut++) + for(k = 0; k < this.name_5O; k++,indexOut++) { - res[indexOut] = input[int(indexIn + this.§_-5O§ * (j + 1) + k)]; + res[indexOut] = input[int(indexIn + this.name_5O * (j + 1) + k)]; } j++; } - indexIn += this.§_-5O§ * verticesCount; + indexIn += this.name_5O * verticesCount; } } return res; @@ -199,60 +199,60 @@ package alternativa.engine3d.loaders.collada var vertex:DaeVertex = null; var s:DaeSource = null; var j:int = 0; - if(this.§_-2g§ == null) + if(this.name_2g == null) { return 0; } - this.§_-2g§.parse(); + this.name_2g.parse(); var numIndices:int = int(this.indices.length); - var daeVertices:DaeVertices = document.findVertices(this.§_-2g§.source); + var daeVertices:DaeVertices = document.findVertices(this.name_2g.source); if(daeVertices == null) { - document.logger.logNotFoundError(this.§_-2g§.source); + document.logger.logNotFoundError(this.name_2g.source); return 0; } daeVertices.parse(); - var positionSource:DaeSource = daeVertices.§_-E6§; + var positionSource:DaeSource = daeVertices.name_E6; var vertexStride:int = 3; var mainSource:DaeSource = positionSource; - var mainInput:DaeInput = this.§_-2g§; + var mainInput:DaeInput = this.name_2g; var channels:uint = 0; var inputOffsets:Vector. = new Vector.(); - inputOffsets.push(this.§_-2g§.offset); - if(this.§_-Fl§ != null) + inputOffsets.push(this.name_2g.offset); + if(this.name_Fl != null) { - normalSource = this.§_-Fl§.prepareSource(3); - inputOffsets.push(this.§_-Fl§.offset); + normalSource = this.name_Fl.prepareSource(3); + inputOffsets.push(this.name_Fl.offset); vertexStride += 3; channels |= NORMALS; - if(this.§_-ly§.length > 0 && this.§_-jU§.length > 0) + if(this.name_ly.length > 0 && this.name_jU.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.name_ly[0].prepareSource(3); + inputOffsets.push(this.name_ly[0].offset); + binormalSource = this.name_jU[0].prepareSource(3); + inputOffsets.push(this.name_jU[0].offset); vertexStride += 4; channels |= TANGENT4; } } var textureSources:Vector. = new Vector.(); - var numTexCoordsInputs:int = int(this.§_-aL§.length); + var numTexCoordsInputs:int = int(this.name_aL.length); if(numTexCoordsInputs > 8) { numTexCoordsInputs = 8; } for(var i:int = 0; i < numTexCoordsInputs; ) { - s = this.§_-aL§[i].prepareSource(2); + s = this.name_aL[i].prepareSource(2); textureSources.push(s); - inputOffsets.push(this.§_-aL§[i].offset); + inputOffsets.push(this.name_aL[i].offset); vertexStride += 2; channels |= TEXCOORDS[i]; i++; } var verticesLength:int = int(vertices.length); this.indexBegin = geometry.alternativa3d::_indices.length; - for(i = 0; i < numIndices; i += this.§_-5O§) + for(i = 0; i < numIndices; i += this.name_5O) { index = this.indices[int(i + mainInput.offset)]; vertex = vertices[index]; @@ -264,23 +264,23 @@ package alternativa.engine3d.loaders.collada } vertex = new DaeVertex(); vertices[index] = vertex; - vertex.§_-Eq§ = this.indices[int(i + this.§_-2g§.offset)]; - vertex.addPosition(positionSource.numbers,vertex.§_-Eq§,positionSource.stride,document.unitScaleFactor); + vertex.name_Eq = this.indices[int(i + this.name_2g.offset)]; + vertex.addPosition(positionSource.numbers,vertex.name_Eq,positionSource.stride,document.unitScaleFactor); if(normalSource != null) { - vertex.addNormal(normalSource.numbers,this.indices[int(i + this.§_-Fl§.offset)],normalSource.stride); + vertex.addNormal(normalSource.numbers,this.indices[int(i + this.name_Fl.offset)],normalSource.stride); } if(tangentSource != null) { - vertex.addTangentBiDirection(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.addTangentBiDirection(tangentSource.numbers,this.indices[int(i + this.name_ly[0].offset)],tangentSource.stride,binormalSource.numbers,this.indices[int(i + this.name_jU[0].offset)],binormalSource.stride); } for(j = 0; j < textureSources.length; ) { - vertex.appendUV(textureSources[j].numbers,this.indices[int(i + this.§_-aL§[j].offset)],textureSources[j].stride); + vertex.appendUV(textureSources[j].numbers,this.indices[int(i + this.name_aL[j].offset)],textureSources[j].stride); j++; } } - vertex.§_-AR§ = index; + vertex.name_AR = index; geometry.alternativa3d::_indices.push(index); } this.numTriangles = (geometry.alternativa3d::_indices.length - this.indexBegin) / 3; @@ -304,7 +304,7 @@ package alternativa.engine3d.loaders.collada private function findInputBySet(inputs:Vector., setNum:int) : DaeInput { var input:DaeInput = null; - for(var i:int = 0,var numInputs:int = int(inputs.length); i < numInputs; ) + for(var i:int = 0, numInputs:int = int(inputs.length); i < numInputs; ) { input = inputs[i]; if(input.setNum == setNum) @@ -322,12 +322,12 @@ package alternativa.engine3d.loaders.collada var texCoordsInput:DaeInput = null; var texCoordsSource:DaeSource = null; var data:VertexChannelData = null; - var mainInput:DaeInput = this.findInputBySet(this.§_-aL§,mainSetNum); - var numInputs:int = int(this.§_-aL§.length); + var mainInput:DaeInput = this.findInputBySet(this.name_aL,mainSetNum); + var numInputs:int = int(this.name_aL.length); var datas:Vector. = new Vector.(); for(i = 0; i < numInputs; ) { - texCoordsInput = this.§_-aL§[i]; + texCoordsInput = this.name_aL[i]; texCoordsSource = texCoordsInput.prepareSource(2); if(texCoordsSource != null) { @@ -348,10 +348,10 @@ package alternativa.engine3d.loaders.collada public function verticesEquals(otherVertices:DaeVertices) : Boolean { - var vertices:DaeVertices = document.findVertices(this.§_-2g§.source); + var vertices:DaeVertices = document.findVertices(this.name_2g.source); if(vertices == null) { - document.logger.logNotFoundError(this.§_-2g§.source); + document.logger.logNotFoundError(this.name_2g.source); } return vertices == otherVertices; } diff --git a/src/alternativa/engine3d/loaders/collada/DaeSampler.as b/src/alternativa/engine3d/loaders/collada/DaeSampler.as index 406932b..f36c8fc 100644 --- a/src/alternativa/engine3d/loaders/collada/DaeSampler.as +++ b/src/alternativa/engine3d/loaders/collada/DaeSampler.as @@ -9,13 +9,13 @@ package alternativa.engine3d.loaders.collada public class DaeSampler extends DaeElement { - private var §_-G6§:Vector.; + private var name_G6:Vector.; private var values:Vector.; - private var §_-JC§:int; + private var name_JC:int; - private var §_-7i§:int; + private var name_7i:int; public function DaeSampler(data:XML, document:DaeDocument) { @@ -29,7 +29,7 @@ package alternativa.engine3d.loaders.collada var input:DaeInput = null; var semantic:String = null; var inputsList:XMLList = data.input; - for(var i:int = 0,var count:int = int(inputsList.length()); i < count; i++) + for(var i:int = 0, count:int = int(inputsList.length()); i < count; i++) { input = new DaeInput(inputsList[i],document); semantic = input.semantic; @@ -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.name_G6 = inputSource.numbers; + this.name_JC = 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.name_7i = outputSource.stride; } break; } @@ -65,13 +65,13 @@ package alternativa.engine3d.loaders.collada var track:NumberTrack = null; var count:int = 0; var i:int = 0; - if(this.§_-G6§ != null && this.values != null && this.§_-JC§ > 0) + if(this.name_G6 != null && this.values != null && this.name_JC > 0) { track = new NumberTrack(objectName,property); - count = this.§_-G6§.length / this.§_-JC§; + count = this.name_G6.length / this.name_JC; for(i = 0; i < count; i++) { - track.addKey(this.§_-G6§[int(this.§_-JC§ * i)],this.values[int(this.§_-7i§ * i)]); + track.addKey(this.name_G6[int(this.name_JC * i)],this.values[int(this.name_7i * i)]); } return track; } @@ -85,15 +85,15 @@ package alternativa.engine3d.loaders.collada var i:int = 0; var index:int = 0; var matrix:Matrix3D = null; - if(this.§_-G6§ != null && this.values != null && this.§_-JC§ != 0) + if(this.name_G6 != null && this.values != null && this.name_JC != 0) { track = new TransformTrack(objectName); - count = this.§_-G6§.length / this.§_-JC§; + count = this.name_G6.length / this.name_JC; for(i = 0; i < count; i++) { - index = this.§_-7i§ * i; + index = this.name_7i * i; matrix = new Matrix3D(Vector.([this.values[index],this.values[index + 4],this.values[index + 8],this.values[index + 12],this.values[index + 1],this.values[index + 5],this.values[index + 9],this.values[index + 13],this.values[index + 2],this.values[index + 6],this.values[index + 10],this.values[index + 14],this.values[index + 3],this.values[index + 7],this.values[index + 11],this.values[index + 15]])); - track.addKey(this.§_-G6§[i * this.§_-JC§],matrix); + track.addKey(this.name_G6[i * this.name_JC],matrix); } return track; } @@ -109,7 +109,7 @@ package alternativa.engine3d.loaders.collada var i:int = 0; var index:int = 0; var time:Number = NaN; - if(this.§_-G6§ != null && this.values != null && this.§_-JC§ != 0) + if(this.name_G6 != null && this.values != null && this.name_JC != 0) { xTrack = new NumberTrack(objectName,xProperty); xTrack.object = objectName; @@ -117,11 +117,11 @@ package alternativa.engine3d.loaders.collada yTrack.object = objectName; zTrack = new NumberTrack(objectName,zProperty); zTrack.object = objectName; - count = this.§_-G6§.length / this.§_-JC§; + count = this.name_G6.length / this.name_JC; for(i = 0; i < count; i++) { - index = i * this.§_-7i§; - time = this.§_-G6§[i * this.§_-JC§]; + index = i * this.name_7i; + time = this.name_G6[i * this.name_JC]; xTrack.addKey(time,this.values[index]); yTrack.addKey(time,this.values[index + 1]); zTrack.addKey(time,this.values[index + 2]); diff --git a/src/alternativa/engine3d/loaders/collada/DaeSource.as b/src/alternativa/engine3d/loaders/collada/DaeSource.as index 423ae7f..4e0ffd6 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 name_XM:String = "float_array"; - private const §_-g6§:String = "int_array"; + private const name_g6:String = "int_array"; - private const §_-ZJ§:String = "Name_array"; + private const name_ZJ:String = "Name_array"; public var numbers:Vector.; - public var §_-op§:Vector.; + public var name_op:Vector.; public var names:Vector.; @@ -29,14 +29,14 @@ package alternativa.engine3d.loaders.collada var child:XML = null; var _loc5_:DaeArray = null; var children:XMLList = data.children(); - for(var i:int = 0,var count:int = int(children.length()); i < count; ) + for(var i:int = 0, count:int = int(children.length()); i < count; ) { child = children[i]; switch(child.localName()) { - case this.§_-XM§: - case this.§_-g6§: - case this.§_-ZJ§: + case this.name_XM: + case this.name_g6: + case this.name_ZJ: _loc5_ = new DaeArray(child,document); if(_loc5_.id != null) { @@ -99,7 +99,7 @@ package alternativa.engine3d.loaders.collada private function numValidParams(params:XMLList) : int { var res:int = 0; - for(var i:int = 0,var count:int = int(params.length()); i < count; ) + for(var i:int = 0, count:int = int(params.length()); i < count; ) { if(params[i].@name[0] != 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.name_XM: this.numbers = new Vector.(int(arrStride * count)); break; - case this.§_-g6§: - this.§_-op§ = new Vector.(int(arrStride * count)); + case this.name_g6: + this.name_op = new Vector.(int(arrStride * count)); break; - case this.§_-ZJ§: + case this.name_ZJ: 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.name_XM: 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.name_g6: for(j = 0; j < count; j++) { - this.§_-op§[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10); + this.name_op[int(arrStride * j + curr)] = parseInt(array[int(offset + stride * j + i)],10); } break; - case this.§_-ZJ§: + case this.name_ZJ: 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..2d6173d 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_Eq:int; - public var §_-AR§:int; + public var name_AR: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_hC: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_hC = new Vector3D(tangentData[int(tangentOffset++)],tangentData[int(tangentOffset++)],tangentData[tangentOffset]); + var crossX:Number = this.normal.y * this.name_hC.z - this.normal.z * this.name_hC.y; + var crossY:Number = this.normal.z * this.name_hC.x - this.normal.x * this.name_hC.z; + var crossZ:Number = this.normal.x * this.name_hC.y - this.normal.y * this.name_hC.x; var dot:Number = crossX * biNormalX + crossY * biNormalY + crossZ * biNormalZ; - this.§_-hC§.w = dot < 0 ? -1 : 1; + this.name_hC.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..c36cec2 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_E6: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_E6 = new DaeInput(inputXML,document).prepareSource(3); + if(this.name_E6 != null) { return true; } diff --git a/src/alternativa/engine3d/materials/A3DUtils.as b/src/alternativa/engine3d/materials/A3DUtils.as index 942fc95..8c32bea 100644 --- a/src/alternativa/engine3d/materials/A3DUtils.as +++ b/src/alternativa/engine3d/materials/A3DUtils.as @@ -70,7 +70,7 @@ package alternativa.engine3d.materials private static function getData(source:Vector.) : ByteArray { var result:ByteArray = new ByteArray(); - for(var i:int = 0,var length:int = int(source.length); i < length; i++) + for(var i:int = 0, length:int = int(source.length); i < length; i++) { result.writeByte(source[i]); } diff --git a/src/alternativa/engine3d/materials/EnviromentMaterial.as b/src/alternativa/engine3d/materials/EnviromentMaterial.as index ba3a45d..b57f63d 100644 --- a/src/alternativa/engine3d/materials/EnviromentMaterial.as +++ b/src/alternativa/engine3d/materials/EnviromentMaterial.as @@ -81,7 +81,7 @@ package alternativa.engine3d.materials private static const _passLightMapUVProcedure:Procedure = new Procedure(["#a0=aUV1","#v0=vUV1","mov v0, a0"],"passLightMapUVProcedure"); - private var §_-NH§:int = 0; + private var name_NH:int = 0; public var normalMap:TextureResource; @@ -112,7 +112,7 @@ package alternativa.engine3d.materials public function get normalMapSpace() : int { - return this.§_-NH§; + return this.name_NH; } public function set normalMapSpace(value:int) : void @@ -121,7 +121,7 @@ package alternativa.engine3d.materials { throw new ArgumentError("Value must be a constant from the NormalMapSpace class"); } - this.§_-NH§ = value; + this.name_NH = value; } override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void @@ -169,7 +169,7 @@ package alternativa.engine3d.materials vertexLinker.setInputParams(procedure,normalVar); vertexLinker.setOutputParams(procedure,"tTransformedNormal"); normalVar = "tTransformedNormal"; - if((this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) && this.normalMap != null) + if((this.name_NH == NormalMapSpace.TANGENT_RIGHT_HANDED || this.name_NH == NormalMapSpace.TANGENT_LEFT_HANDED) && this.normalMap != null) { vertexLinker.declareVariable(tangentVar,VariableType.ATTRIBUTE); vertexLinker.declareVariable("tTransformedTangent"); @@ -180,7 +180,7 @@ package alternativa.engine3d.materials tangentVar = "tTransformedTangent"; } } - else if((this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) && this.normalMap != null) + else if((this.name_NH == NormalMapSpace.TANGENT_RIGHT_HANDED || this.name_NH == NormalMapSpace.TANGENT_LEFT_HANDED) && this.normalMap != null) { vertexLinker.declareVariable(tangentVar,VariableType.ATTRIBUTE); } @@ -193,9 +193,9 @@ package alternativa.engine3d.materials if(this.normalMap != null) { fragmentLinker.declareVariable("tNormal"); - if(this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) + if(this.name_NH == NormalMapSpace.TANGENT_RIGHT_HANDED || this.name_NH == NormalMapSpace.TANGENT_LEFT_HANDED) { - nrmProcedure = this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; + nrmProcedure = this.name_NH == NormalMapSpace.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; vertexLinker.addProcedure(nrmProcedure); vertexLinker.setInputParams(nrmProcedure,tangentVar,normalVar); fragmentLinker.addProcedure(_getNormalTangentProcedure); @@ -209,7 +209,7 @@ package alternativa.engine3d.materials } vertexLinker.link(); fragmentLinker.declareVariable("tColor"); - if(§_-L4§) + if(name_L4) { fragmentLinker.addProcedure(alternativa3d::_samplerSetProcedureDiffuseAlpha); fragmentLinker.setOutputParams(alternativa3d::_samplerSetProcedureDiffuseAlpha,"tColor"); @@ -300,7 +300,7 @@ package alternativa.engine3d.materials { return; } - if(!§_-L4§ && opacityMap != null && opacityMap.alternativa3d::_texture == null) + if(!name_L4 && opacityMap != null && opacityMap.alternativa3d::_texture == null) { return; } @@ -313,7 +313,7 @@ package alternativa.engine3d.materials { 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.name_NH.toString() + (this.normalMap != null ? "N" : "n") + (opacityMap != null ? "O" : "o") + (name_L4 ? "D" : "d"); var programs:Dictionary = _programs[object.alternativa3d::transformProcedure]; if(programs == null) { @@ -333,7 +333,7 @@ package alternativa.engine3d.materials 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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sLightMap"),this.lightMap.alternativa3d::_texture); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[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]]); @@ -347,7 +347,7 @@ package alternativa.engine3d.materials if(this.normalMap != null) { drawUnit.alternativa3d::setTextureAt(envProgram.sBump,this.normalMap.alternativa3d::_texture); - if(this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) + if(this.name_NH == NormalMapSpace.TANGENT_RIGHT_HANDED || this.name_NH == NormalMapSpace.TANGENT_LEFT_HANDED) { drawUnit.alternativa3d::setVertexBufferAt(envProgram.aTangent,tangentsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TANGENT4],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TANGENT4]); } @@ -362,7 +362,7 @@ package alternativa.engine3d.materials drawUnit.alternativa3d::setFragmentConstantsFromNumbers(envProgram.cCamera,cameraToLocalTransform.d,cameraToLocalTransform.h,cameraToLocalTransform.l); drawUnit.alternativa3d::setFragmentConstantsFromNumbers(envProgram.cAlpha,0,1 - this.reflection,this.reflection,alpha); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),diffuseMap.alternativa3d::_texture); - if(!§_-L4§ && opacityMap != null) + if(!name_L4 && opacityMap != null) { drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sOpacity"),opacityMap.alternativa3d::_texture); } @@ -412,7 +412,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(§_-L4§ || opacityMap != null || alpha < 1) + if(name_L4 || opacityMap != null || alpha < 1) { drawUnit.alternativa3d::blendSource = Context3DBlendFactor.SOURCE_ALPHA; drawUnit.alternativa3d::blendDestination = Context3DBlendFactor.ONE_MINUS_SOURCE_ALPHA; @@ -427,6 +427,7 @@ package alternativa.engine3d.materials } import alternativa.engine3d.materials.compiler.Linker; +import alternativa.engine3d.materials.ShaderProgram; class EnvironmentMaterialShaderProgram extends ShaderProgram { diff --git a/src/alternativa/engine3d/materials/FillMaterial.as b/src/alternativa/engine3d/materials/FillMaterial.as index 43de80b..e877334 100644 --- a/src/alternativa/engine3d/materials/FillMaterial.as +++ b/src/alternativa/engine3d/materials/FillMaterial.as @@ -85,7 +85,7 @@ package alternativa.engine3d.materials 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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); diff --git a/src/alternativa/engine3d/materials/StandardMaterial.as b/src/alternativa/engine3d/materials/StandardMaterial.as index ba4a458..bf25e27 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 name_ES: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 name_NH: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 name_kj: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.name_NH; } 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.name_NH = value; } alternativa3d function getPassUVProcedure() : Procedure @@ -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.name_NH == NormalMapSpace.TANGENT_RIGHT_HANDED || this.name_NH == NormalMapSpace.TANGENT_LEFT_HANDED) { - nrmProcedure = this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED ? _passTBNRightProcedure : _passTBNLeftProcedure; + nrmProcedure = this.name_NH == 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.name_oG + "Position","#c1=c" + light.name_oG + "Color","#c2=c" + light.name_oG + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, o1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx","mul t1.xyz, t0.xyz, t1.w","add o1.xyz, o1.xyz, t1.xyz","mul t0.xyz, t0.xyz, t0.www","add o0.xyz, o0.xyz, t0.xyz"]); lightFragmentProcedure.name += "Omni"; } else if(light is SpotLight) { - lightFragmentProcedure.compileFromArray(["#c0=c" + light.alternativa3d::_-oG + "Position","#c1=c" + light.alternativa3d::_-oG + "Color","#c2=c" + light.alternativa3d::_-oG + "Radius","#c3=c" + light.alternativa3d::_-oG + "Axis","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0, t0","nrm t0.xyz,t0.xyz","add t2.xyz, i1.xyz, t0.xyz","nrm t2.xyz, t2.xyz","dp3 t2.x, t2.xyz, i0.xyz","pow t2.x, t2.x, o1.w","dp3 t1.x, t0.xyz, c3.xyz","dp3 t0.x, t0, i0.xyz","sqt t0.w, t0.w","sub t0.w, t0.w, c2.y","div t0.y, t0.w, c2.x","sub t0.w, c0.w, t0.y","sub t0.y, t1.x, c2.w","div t0.y, t0.y, c2.z","sat t0.xyw,t0.xyw","mul t1.xyz,c1.xyz,t0.yyy","mul t1.xyz,t1.xyz,t0.www","mul t2.xyz, t2.x, t1.xyz","add o1.xyz, o1.xyz, t2.xyz","mul t1.xyz, t1.xyz, t0.xxx","add o0.xyz, o0.xyz, t1.xyz"]); + lightFragmentProcedure.compileFromArray(["#c0=c" + light.name_oG + "Position","#c1=c" + light.name_oG + "Color","#c2=c" + light.name_oG + "Radius","#c3=c" + light.name_oG + "Axis","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0, t0","nrm t0.xyz,t0.xyz","add t2.xyz, i1.xyz, t0.xyz","nrm t2.xyz, t2.xyz","dp3 t2.x, t2.xyz, i0.xyz","pow t2.x, t2.x, o1.w","dp3 t1.x, t0.xyz, c3.xyz","dp3 t0.x, t0, i0.xyz","sqt t0.w, t0.w","sub t0.w, t0.w, c2.y","div t0.y, t0.w, c2.x","sub t0.w, c0.w, t0.y","sub t0.y, t1.x, c2.w","div t0.y, t0.y, c2.z","sat t0.xyw,t0.xyw","mul t1.xyz,c1.xyz,t0.yyy","mul t1.xyz,t1.xyz,t0.www","mul t2.xyz, t2.x, t1.xyz","add o1.xyz, o1.xyz, t2.xyz","mul t1.xyz, t1.xyz, t0.xxx","add o0.xyz, o0.xyz, t1.xyz"]); lightFragmentProcedure.name += "Spot"; } } @@ -276,7 +276,7 @@ package alternativa.engine3d.materials fragmentLinker.addProcedure(_mulLightingProcedure); fragmentLinker.setInputParams(_mulLightingProcedure,"tTotalLight","tTotalHighLight"); fragmentLinker.setOutputParams(_mulLightingProcedure,"outColor"); - if(§_-L4§) + if(name_L4) { 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.name_oG + "Direction","#c1=c" + light.name_oG + "Color","add t0.xyz, i1.xyz, c0.xyz","mov t0.w, c0.w","nrm t0.xyz,t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, o1.w","dp3 t0.x, i0.xyz, c0.xyz","sat t0.x, t0.x"]; if(useShadow) { source.push("mul t0.x, t0.x, i2.x"); @@ -394,7 +394,7 @@ package alternativa.engine3d.materials { return; } - if(!§_-L4§ && opacityMap != null && opacityMap.alternativa3d::_texture == null) + if(!name_L4 && 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.name_NH.toString() + (this.glossinessMap != null ? "G" : "g") + (opacityMap != null ? "O" : "o") + (this.specularMap != null ? "S" : "s") + (name_L4 ? "D" : "d"); for(i = 0; i < lightsLength; i++) { light = lights[i]; @@ -424,7 +424,7 @@ package alternativa.engine3d.materials directional = DirectionalLight(light); key += "S"; } - key += light.alternativa3d::_-oG; + key += light.name_oG; } var programs:Dictionary = _programs[object.alternativa3d::transformProcedure]; if(programs == null) @@ -445,16 +445,16 @@ package alternativa.engine3d.materials 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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex("cAmbientColor"),camera.alternativa3d::ambient,1); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.§_-kj§,alpha); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.name_kj,alpha); if(lightsLength > 0) { - if(this.§_-NH§ == NormalMapSpace.TANGENT_RIGHT_HANDED || this.§_-NH§ == NormalMapSpace.TANGENT_LEFT_HANDED) + if(this.name_NH == NormalMapSpace.TANGENT_RIGHT_HANDED || this.name_NH == NormalMapSpace.TANGENT_LEFT_HANDED) { drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.NORMAL],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.NORMAL]); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aTangent"),tangentsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TANGENT4],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TANGENT4]); @@ -467,37 +467,37 @@ package alternativa.engine3d.materials light = lights[i]; if(light is DirectionalLight) { - transform = light.alternativa3d::_-cl; + transform = light.name_cl; len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "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.name_cl; rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k); rScale /= 3; - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "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.name_cl; rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); rScale += len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); rScale /= 3; falloff = Number(Math.cos(spot.falloff * 0.5)); hotspot = Number(Math.cos(spot.hotspot * 0.5)); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Axis"),-transform.c / len,-transform.g / len,-transform.k / len); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),spot.attenuationEnd * rScale - spot.attenuationBegin * rScale,spot.attenuationBegin * rScale,hotspot == falloff ? 0.000001 : hotspot - falloff,falloff); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Axis"),-transform.c / len,-transform.g / len,-transform.k / len); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_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.name_oG + "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(!name_L4 && 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.name_ES) { 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(name_L4 || 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..491d6dc 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 name_L4: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.name_L4 && this.opacityMap == null; } override alternativa3d function fillResources(resources:Dictionary, resourceType:Class) : void @@ -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.name_L4 ? alternativa3d::_samplerSetProcedureDiffuseAlpha : (this.opacityMap != null ? alternativa3d::_samplerSetProcedureOpacity : alternativa3d::_samplerSetProcedure); var fragmentLinker:Linker = new Linker(Context3DProgramType.FRAGMENT); fragmentLinker.addProcedure(outProcedure); fragmentLinker.setOppositeLinker(vertexLinker); @@ -93,7 +93,7 @@ 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.name_L4 ? 2 : (this.opacityMap != null ? 1 : 0); var optionsPrograms:Vector. = _programs[object.alternativa3d::transformProcedure]; if(optionsPrograms == null) { @@ -117,22 +117,22 @@ package alternativa.engine3d.materials { return; } - if(!this.§_-L4§ && this.opacityMap != null && this.opacityMap.alternativa3d::_texture == null) + if(!this.name_L4 && this.opacityMap != null && this.opacityMap.alternativa3d::_texture == null) { return; } - var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles,program); + var drawUnit:DrawUnit = camera.alternativa3d::renderer.alternativa3d::createDrawUnit(object,program.program,geometry.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cAlpha"),0,0,0,this.alpha); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),this.diffuseMap.alternativa3d::_texture); - if(!this.§_-L4§ && this.opacityMap != null) + if(!this.name_L4 && 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.name_L4 || 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..18849ec 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_0J = regmask << 16 | index; switch(strType) { case "t": - §_-0J§ |= 33554432; + name_0J |= 33554432; type = 2; break; case "o": - §_-0J§ |= 50331648; + name_0J |= 50331648; type = 3; break; case "v": - §_-0J§ |= 67108864; + name_0J |= 67108864; type = 4; break; case "i": - §_-0J§ |= 100663296; + name_0J |= 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_0J & ~0x0F00FFFF | newIndex | newType << 24); } } } diff --git a/src/alternativa/engine3d/materials/compiler/Linker.as b/src/alternativa/engine3d/materials/compiler/Linker.as index 727599c..8ef694d 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 name_RT:int = 0; - public var §_-A§:int = 0; + public var name_A:int = 0; public var type:String; - private var §_-2L§:Vector. = new Vector.(); + private var name_2L:Vector. = new Vector.(); - private var §_-RU§:ByteArray = new ByteArray(); + private var name_RU:ByteArray = new ByteArray(); - private var §_-8Z§:Boolean; + private var name_8Z:Boolean; - alternativa3d var §_-3r§:Object; + alternativa3d var name_3r:Object; - private var §_-c§:Object = new Object(); + private var name_c:Object = new Object(); - private var §_-T1§:Linker; + private var name_T1:Linker; - private var §_-W8§:Dictionary = new Dictionary(); + private var name_W8:Dictionary = new Dictionary(); - private var §_-f-§:Dictionary = new Dictionary(); + private var name_f:Dictionary = new Dictionary(); - private var §_-Jf§:Vector. = new Vector.(6,true); + private var name_Jf:Vector. = new Vector.(6,true); public function Linker(programType:String) { super(); - this.§_-RU§.endian = Endian.LITTLE_ENDIAN; + this.name_RU.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.name_RU.writeByte(160); + this.name_RU.writeUnsignedInt(1); + this.name_RU.writeByte(161); + this.name_RU.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.name_RU.length = 7; + this.name_Jf[0] = this.name_Jf[1] = this.name_Jf[2] = this.name_Jf[3] = this.name_Jf[4] = this.name_Jf[5] = 0; + this.name_2L.length = 0; + this.name_8Z = false; + this.name_A = 0; + this.name_RT = 0; + this.name_3r = null; + this.name_W8 = new Dictionary(); + this.name_f = new Dictionary(); } public function addProcedure(procedure:Procedure) : void { - this.§_-8Z§ = true; - this.§_-2L§.push(procedure); + this.name_8Z = true; + this.name_2L.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.name_c[name] = v; } public function setInputParams(procedure:Procedure, ... args) : void { - this.§_-W8§[procedure] = args; + this.name_W8[procedure] = args; } public function setOutputParams(procedure:Procedure, ... args) : void { - this.§_-f-§[procedure] = args; + this.name_f[procedure] = args; } public function getVariableIndex(name:String) : int { - if(this.§_-8Z§) + if(this.name_8Z) { this.link(); } - var variable:Variable = this.alternativa3d::_-3r[name]; + var variable:Variable = this.name_3r[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.name_8Z) { this.link(); } - var variable:Variable = this.alternativa3d::_-3r[name]; + var variable:Variable = this.name_3r[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.name_8Z) { this.link(); } - return this.alternativa3d::_-3r[name] != null; + return this.name_3r[name] != null; } public function getByteCode() : ByteArray { - if(this.§_-8Z§) + if(this.name_8Z) { this.link(); } - return this.§_-RU§; + return this.name_RU; } public function setOppositeLinker(linker:Linker) : void { - this.§_-T1§ = linker; - this.§_-8Z§ = true; + this.name_T1 = linker; + this.name_8Z = 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.name_8Z) { - 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.name_3r = new Object(); + this.name_RU.position = 7; + this.name_Jf[0] = 0; + this.name_Jf[1] = 0; + this.name_Jf[3] = 0; + this.name_Jf[4] = 0; + this.name_Jf[5] = 0; + this.name_A = 0; + this.name_RT = 0; + for each(v in this.name_c) { - this.alternativa3d::_-3r[v.name] = v; + this.name_3r[v.name] = v; } - for(i = 0; i < this.§_-2L§.length; i++) + for(i = 0; i < this.name_2L.length; i++) { - p = this.§_-2L§[i]; - this.§_-A§ += p.§_-A§; - this.§_-RT§ += p.§_-RT§; - input = this.§_-W8§[p]; - output = this.§_-f-§[p]; + p = this.name_2L[i]; + this.name_A += p.name_A; + this.name_RT += p.name_RT; + input = this.name_W8[p]; + output = this.name_f[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.name_3r[param]; if(v == null) { throw new Error("Input parameter not set. paramName = " + param); } - if(p.§_-d2§[6].length > j) + if(p.name_d2[6].length > j) { - inParam = p.§_-d2§[6][j]; + inParam = p.name_d2[6][j]; if(inParam == null) { throw new Error("Input parameter set, but not exist in code. paramName = " + param + ", register = i" + j.toString()); } - if(this.§_-c§[v.name] != null && v.index < 0) + if(this.name_c[v.name] != null && v.index < 0) { - v.index = int(this.§_-Jf§[v.type]++); + v.index = int(this.name_Jf[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.name_3r[param]; if(v == null) { - if(!(j == 0 && i == this.§_-2L§.length - 1)) + if(!(j == 0 && i == this.name_2L.length - 1)) { throw new Error("Output parameter have not declared. paramName = " + param); } } else { - if(this.§_-c§[v.name] != null && v.index < 0) + if(this.name_c[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.name_Jf[v.type]++); } - outParam = p.§_-d2§[3][j]; + outParam = p.name_d2[3][j]; if(outParam == null) { throw new Error("Output parameter set, but not exist in code. paramName = " + param + ", register = i" + j.toString()); @@ -244,7 +244,7 @@ package alternativa.engine3d.materials.compiler } } } - vars = p.§_-d2§[2]; + vars = p.name_d2[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.name_Jf[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.name_Jf[VariableType.CONSTANT] += p.name_in; + this.resolveVariablesUsages(code,p.name_d2[0],VariableType.ATTRIBUTE); + this.resolveVariablesUsages(code,p.name_d2[1],VariableType.CONSTANT); + this.resolveVaryings(code,p.name_d2[4]); + this.resolveVariablesUsages(code,p.name_d2[5],VariableType.SAMPLER); + this.name_RU.writeBytes(code,0,code.length); } - this.§_-8Z§ = false; + this.name_8Z = 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.name_T1 != null && this.name_T1.name_8Z) { - this.§_-T1§.link(); + this.name_T1.link(); } - var oppositeVariables:Object = this.§_-T1§ != null ? this.§_-T1§.alternativa3d::_-3r : null; + var oppositeVariables:Object = this.name_T1 != null ? this.name_T1.name_3r : null; for(var j:uint = 0; j < variableUsages.length; j++) { vUsage = variableUsages[j]; if(vUsage != null) { - variable = this.alternativa3d::_-3r[vUsage.name]; + variable = this.name_3r[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.name_3r[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.name_Jf[type]; + this.name_Jf[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.name_3r[vUsage.name]; if(variable == null) { variable = Variable.create(); if(vUsage.name != null) { - this.alternativa3d::_-3r[vUsage.name] = variable; + this.name_3r[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.name_Jf[type]; + this.name_Jf[type] += vUsage.size; variable.type = type; } else if(variable.index < 0) { - variable.index = int(this.§_-Jf§[type]++); + variable.index = int(this.name_Jf[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.name_2L.length; i++) { - p = this.§_-2L§[i]; + p = this.name_2L[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.name_W8[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.name_f[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.name_RT.toString() + ", CMDS:" + p.name_A.toString() + "]\n"; + totalCodes += p.name_RT; + totalCommands += p.name_A; } return result + ("[IS:" + totalCodes.toString() + ", CMDS:" + totalCommands.toString() + "]\n"); } diff --git a/src/alternativa/engine3d/materials/compiler/Procedure.as b/src/alternativa/engine3d/materials/compiler/Procedure.as index a801839..264855c 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_d2:Vector.> = new Vector.>(); - public var §_-RT§:int = 0; + public var name_RT:int = 0; - public var §_-A§:int = 0; + public var name_A:int = 0; - alternativa3d var §_-in§:uint = 0; + alternativa3d var name_in: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_d2[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_d2[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_d2[i] = new Vector.(); } this.byteCode.length = 0; - this.§_-A§ = 0; - this.§_-RT§ = 0; + this.name_A = 0; + this.name_RT = 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.name_in = registersCount; } private function writeCommand(source:String) : void @@ -167,161 +167,161 @@ package alternativa.engine3d.materials.compiler { case "mov": type = CommandType.MOV; - ++this.§_-RT§; + ++this.name_RT; break; case "add": type = CommandType.ADD; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; break; case "sub": type = CommandType.SUB; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; break; case "mul": type = CommandType.MUL; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; break; case "div": type = CommandType.DIV; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; break; case "rcp": type = CommandType.RCP; - ++this.§_-RT§; + ++this.name_RT; break; case "min": type = CommandType.MIN; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; break; case "max": type = CommandType.MAX; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; break; case "frc": type = CommandType.FRC; - ++this.§_-RT§; + ++this.name_RT; break; case "sqt": type = CommandType.SQT; - ++this.§_-RT§; + ++this.name_RT; break; case "rsq": type = CommandType.RSQ; - ++this.§_-RT§; + ++this.name_RT; break; case "pow": type = CommandType.POW; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - this.§_-RT§ += 3; + this.name_RT += 3; break; case "log": type = CommandType.LOG; - ++this.§_-RT§; + ++this.name_RT; break; case "exp": type = CommandType.EXP; - ++this.§_-RT§; + ++this.name_RT; break; case "nrm": type = CommandType.NRM; - this.§_-RT§ += 3; + this.name_RT += 3; break; case "sin": type = CommandType.SIN; - this.§_-RT§ += 8; + this.name_RT += 8; break; case "cos": type = CommandType.COS; - this.§_-RT§ += 8; + this.name_RT += 8; break; case "crs": type = CommandType.CRS; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - this.§_-RT§ += 2; + this.name_RT += 2; break; case "dp3": type = CommandType.DP3; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; break; case "dp4": type = CommandType.DP4; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; break; case "abs": type = CommandType.ABS; - ++this.§_-RT§; + ++this.name_RT; break; case "neg": type = CommandType.NEG; - ++this.§_-RT§; + ++this.name_RT; break; case "sat": type = CommandType.SAT; - ++this.§_-RT§; + ++this.name_RT; break; case "m33": type = CommandType.M33; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - this.§_-RT§ += 3; + this.name_RT += 3; break; case "m44": type = CommandType.M44; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - this.§_-RT§ += 4; + this.name_RT += 4; break; case "m34": type = CommandType.M34; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - this.§_-RT§ += 3; + this.name_RT += 3; break; case "kil": type = CommandType.KIL; - ++this.§_-RT§; + ++this.name_RT; break; case "tex": type = CommandType.TEX; source2 = new SamplerVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; break; case "sge": type = CommandType.SGE; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; break; case "slt": type = CommandType.SLT; source2 = new SourceVariable(operands[3]); this.addVariableUsage(source2); - ++this.§_-RT§; + ++this.name_RT; } this.byteCode.writeUnsignedInt(type); if(destination != null) { destination.position = this.byteCode.position; - this.byteCode.writeUnsignedInt(destination.§_-0J§); + this.byteCode.writeUnsignedInt(destination.name_0J); } 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_0J); + this.byteCode.writeUnsignedInt(source1.name_oc); 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_0J); + this.byteCode.writeUnsignedInt(source2.name_oc); } else { this.byteCode.position = this.byteCode.length = this.byteCode.length + 8; } - ++this.§_-A§; + ++this.name_A; } public function newInstance() : Procedure { var res:Procedure = new Procedure(); res.byteCode = this.byteCode; - res.§_-d2§ = this.§_-d2§; - res.§_-RT§ = this.§_-RT§; - res.alternativa3d::_-in = this.alternativa3d::_-in; - res.§_-A§ = this.§_-A§; + res.name_d2 = this.name_d2; + res.name_RT = this.name_RT; + res.name_in = this.name_in; + res.name_A = this.name_A; 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..5c2de0e 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_0J = reloffset << 16 | index; + name_oc |= type << 8; + name_oc |= relsel << 16; + name_oc |= 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..9aaeb64 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_oc = VariableType.SAMPLER; break; case "i": - §_-oc§ = VariableType.INPUT; + name_oc = VariableType.INPUT; } index = parseInt(source.match(/\d+/g)[0],10); - §_-0J§ = index; + name_0J = index; var optsi:int = int(source.search(/<.*>/g)); if(optsi != -1) { opts = source.substring(optsi).match(/(\w+)/g); } - type = §_-oc§; + type = name_oc; 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_oc &= ~0xF000; break; case "3d": - §_-oc§ &= ~0xF000; - §_-oc§ |= 8192; + name_oc &= ~0xF000; + name_oc |= 8192; break; case "cube": - §_-oc§ &= ~0xF000; - §_-oc§ |= 4096; + name_oc &= ~0xF000; + name_oc |= 4096; break; case "mipnearest": - §_-oc§ &= ~0x0F000000; - §_-oc§ |= 16777216; + name_oc &= ~0x0F000000; + name_oc |= 16777216; break; case "miplinear": - §_-oc§ &= ~0x0F000000; - §_-oc§ |= 33554432; + name_oc &= ~0x0F000000; + name_oc |= 33554432; break; case "mipnone": case "nomip": - §_-oc§ &= ~0x0F000000; + name_oc &= ~0x0F000000; break; case "nearest": - §_-oc§ &= ~4026531840; + name_oc &= ~4026531840; break; case "linear": - §_-oc§ &= ~4026531840; - §_-oc§ |= 268435456; + name_oc &= ~4026531840; + name_oc |= 268435456; break; case "centroid": - §_-oc§ |= 4294967296; + name_oc |= 4294967296; break; case "single": - §_-oc§ |= 8589934592; + name_oc |= 8589934592; break; case "depth": - §_-oc§ |= 17179869184; + name_oc |= 17179869184; break; case "repeat": case "wrap": - §_-oc§ &= ~0xF00000; - §_-oc§ |= 1048576; + name_oc &= ~0xF00000; + name_oc |= 1048576; break; case "clamp": - §_-oc§ &= ~0xF00000; + name_oc &= ~0xF00000; break; } i++; diff --git a/src/alternativa/engine3d/materials/compiler/SourceVariable.as b/src/alternativa/engine3d/materials/compiler/SourceVariable.as index 54efd81..1be5bf3 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_0J = 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_oc = type; if(isRel) { this.relative = new RelativeVariable(relreg[0]); - §_-0J§ |= this.relative.§_-0J§; - §_-oc§ |= this.relative.§_-oc§; + name_0J |= this.relative.name_0J; + name_oc |= this.relative.name_oc; isRelative = true; } } diff --git a/src/alternativa/engine3d/materials/compiler/Variable.as b/src/alternativa/engine3d/materials/compiler/Variable.as index 339252d..b4da815 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_0J:uint; - public var §_-oc§:uint; + public var name_oc:uint; public var isRelative:Boolean; - private var §_-RS§:uint = 1; + private var name_RS:uint = 1; public function Variable() { @@ -51,12 +51,12 @@ package alternativa.engine3d.materials.compiler public function get size() : uint { - return this.§_-RS§; + return this.name_RS; } public function set size(value:uint) : void { - this.§_-RS§ = value; + this.name_RS = 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 be9b30a..1c69765 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 < name_Oy; ) { - surface = alternativa3d::_-eW[i]; + surface = name_eW[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..413a3b9 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_Dy:Transform3D = new Transform3D(); alternativa3d var bindPoseTransform:Transform3D = new Transform3D(); - private var §_-ar§:Transform3D = new Transform3D(); + private var name_ar: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.name_Dy.combine(alternativa3d::localToGlobalTransform,this.alternativa3d::bindPoseTransform); } } diff --git a/src/alternativa/engine3d/objects/Mesh.as b/src/alternativa/engine3d/objects/Mesh.as index 6e3d7a7..ea8c86f 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 name_eW:Vector. = new Vector.(); - alternativa3d var §_-Oy§:int = 0; + alternativa3d var name_Oy: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.name_eW) { 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.name_Oy++; + this.name_eW[_loc5_] = res; return res; } public function getSurface(index:int) : Surface { - return this.alternativa3d::_-eW[index]; + return this.name_eW[index]; } public function get numSurfaces() : int { - return this.alternativa3d::_-Oy; + return this.name_Oy; } public function setMaterialToAllSurfaces(material:Material) : void { - for(var i:int = 0; i < this.alternativa3d::_-eW.length; i++) + for(var i:int = 0; i < this.name_eW.length; i++) { - this.alternativa3d::_-eW[i].material = material; + this.name_eW[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.name_Oy; ) { - s = this.alternativa3d::_-eW[i]; + s = this.name_eW[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.name_Oy; ) { - surface = this.alternativa3d::_-eW[i]; + surface = this.name_eW[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.name_QK.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.name_Oy = 0; + this.name_eW.length = 0; + for each(s in mesh.name_eW) { 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 681c85a..590cba9 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 name_WA:Vector.; - alternativa3d var §_-Cq§:Vector.>; + alternativa3d var name_Cq:Vector.>; - alternativa3d var §_-fB§:Vector.; + alternativa3d var name_fB:Vector.; - alternativa3d var §do §:Vector.; + alternativa3d var name_do: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.name_WA = new Vector.(); + this.name_Cq = new Vector.>(); + this.name_fB = new Vector.(); + this.name_do = 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.name_fB[name_Oy] = alternativa3d::transformProcedure; + this.name_do[name_Oy] = alternativa3d::deltaTransformProcedure; + this.name_Cq[name_Oy] = this.name_WA; 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.name_Cq.length = 0; var jointsBufferNumMappings:int = int(geometry.alternativa3d::_vertexStreams[jointsBuffer].attributes.length); var jointsBufferData:ByteArray = geometry.alternativa3d::_vertexStreams[jointsBuffer].data; - for(var i:int = 0; i < alternativa3d::_-Oy; i++) + for(var i:int = 0; i < name_Oy; 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,name_eW[i],jointsOffsets,jointsBufferNumMappings * 4,jointsBufferData,outVertices,outIndices,outSurfaces,outJointsMaps); for(j = 0,count = int(outIndices.length); j < count; j++) { var _loc31_:* = totalIndicesLength++; @@ -358,7 +358,7 @@ package 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.name_Cq[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.name_WA[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++) + name_eW = outSurfaces; + name_Oy = outSurfaces.length; + this.name_fB.length = name_Oy; + this.name_do.length = name_Oy; + for(i = 0; i < name_Oy; 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.name_fB[i] = this.calculateTransformProcedure(this.maxInfluences,this.name_Cq[i].length); + this.name_do[i] = this.calculateDeltaTransformProcedure(this.maxInfluences,this.name_Cq[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 < name_Oy; ) { - surface = alternativa3d::_-eW[i]; - alternativa3d::transformProcedure = this.alternativa3d::_-fB[i]; - alternativa3d::deltaTransformProcedure = this.alternativa3d::do [i]; + surface = name_eW[i]; + alternativa3d::transformProcedure = this.name_fB[i]; + alternativa3d::deltaTransformProcedure = this.name_do[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(name_eW.indexOf(surface)); + var joints:Vector. = this.name_Cq[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.name_Dy); } } @@ -618,15 +618,15 @@ package alternativa.engine3d.objects { super.clonePropertiesFrom(source); var skin:Skin = Skin(source); - if(skin.§_-WA§ != null) + if(skin.name_WA != null) { - this.§_-WA§ = this.cloneJointsVector(skin.§_-WA§,skin); + this.name_WA = this.cloneJointsVector(skin.name_WA,skin); } - for(var i:int = 0; i < alternativa3d::_-Oy; ) + for(var i:int = 0; i < name_Oy; ) { - 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.name_Cq[i] = this.cloneJointsVector(skin.name_Cq[i],skin); + this.name_fB[i] = this.calculateTransformProcedure(this.maxInfluences,this.name_Cq[i].length); + this.name_do[i] = this.calculateDeltaTransformProcedure(this.maxInfluences,this.name_Cq[i].length); i++; } } @@ -647,7 +647,7 @@ package alternativa.engine3d.objects private function findClonedJoint(joint:Joint, parentSource:Object3D, parentDest:Object3D) : Object3D { var j:Object3D = null; - for(var srcChild:Object3D = parentSource.alternativa3d::childrenList,var dstChild:Object3D = parentDest.alternativa3d::childrenList; srcChild != null; ) + for(var srcChild:Object3D = parentSource.alternativa3d::childrenList, dstChild:Object3D = parentDest.alternativa3d::childrenList; srcChild != null; ) { if(srcChild == joint) { diff --git a/src/alternativa/engine3d/objects/SkyBox.as b/src/alternativa/engine3d/objects/SkyBox.as index 1dc12f3..fa43886 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 name_gj:Surface; - private var §_-69§:Surface; + private var name_69:Surface; - private var §_-EB§:Surface; + private var name_EB:Surface; - private var §_-iw§:Surface; + private var name_iw:Surface; - private var §_-1V§:Surface; + private var name_1V:Surface; - private var §_-Oz§:Surface; + private var name_Oz: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.name_gj = addSurface(left,0,2); + this.name_69 = addSurface(right,6,2); + this.name_EB = addSurface(back,12,2); + this.name_iw = addSurface(front,18,2); + this.name_1V = addSurface(bottom,24,2); + this.name_Oz = addSurface(top,30,2); alternativa3d::transformProcedure = transformProcedureStatic; } override alternativa3d function collectDraws(camera:Camera3D, lights:Vector., lightsLength:int) : void { var surface:Surface = null; - for(var i:int = 0; i < alternativa3d::_-Oy; ) + for(var i:int = 0; i < name_Oy; ) { - surface = alternativa3d::_-eW[i]; + surface = name_eW[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.name_gj; case RIGHT: - return this.§_-69§; + return this.name_69; case BACK: - return this.§_-EB§; + return this.name_EB; case FRONT: - return this.§_-iw§; + return this.name_iw; case BOTTOM: - return this.§_-1V§; + return this.name_1V; case TOP: - return this.§_-Oz§; + return this.name_Oz; 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.name_Oy; ) { - surface = src.alternativa3d::_-eW[i]; - newSurface = alternativa3d::_-eW[i]; - if(surface == src.§_-gj§) + surface = src.name_eW[i]; + newSurface = name_eW[i]; + if(surface == src.name_gj) { - this.§_-gj§ = newSurface; + this.name_gj = newSurface; } - else if(surface == src.§_-69§) + else if(surface == src.name_69) { - this.§_-69§ = newSurface; + this.name_69 = newSurface; } - else if(surface == src.§_-EB§) + else if(surface == src.name_EB) { - this.§_-EB§ = newSurface; + this.name_EB = newSurface; } - else if(surface == src.§_-iw§) + else if(surface == src.name_iw) { - this.§_-iw§ = newSurface; + this.name_iw = newSurface; } - else if(surface == src.§_-1V§) + else if(surface == src.name_1V) { - this.§_-1V§ = newSurface; + this.name_1V = newSurface; } - else if(surface == src.§_-Oz§) + else if(surface == src.name_Oz) { - this.§_-Oz§ = newSurface; + this.name_Oz = newSurface; } i++; } diff --git a/src/alternativa/engine3d/objects/WireFrame.as b/src/alternativa/engine3d/objects/WireFrame.as index 5f24446..01ca6d0 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 name_lc:Vector. = new Vector.(4,true); alternativa3d var geometry:WireGeometry; @@ -113,7 +113,7 @@ package alternativa.engine3d.objects var edges:Dictionary = new Dictionary(); var indices:Vector. = geometry.indices; var vertices:Vector. = geometry.getAttributeValues(VertexAttributes.POSITION); - for(var i:int = 0,var count:int = int(indices.length); i < count; ) + for(var i:int = 0, count:int = int(indices.length); i < count; ) { index = indices[i] * 3; v1x = vertices[index]; @@ -181,24 +181,24 @@ package alternativa.engine3d.objects public function get alpha() : Number { - return this.alternativa3d::_-lc[3]; + return this.name_lc[3]; } public function set alpha(value:Number) : void { - this.alternativa3d::_-lc[3] = value; + this.name_lc[3] = value; } public function get color() : uint { - return this.alternativa3d::_-lc[0] * 255 << 16 | this.alternativa3d::_-lc[1] * 255 << 8 | this.alternativa3d::_-lc[2] * 255; + return this.name_lc[0] * 255 << 16 | this.name_lc[1] * 255 << 8 | this.name_lc[2] * 255; } public function set color(value:uint) : void { - this.alternativa3d::_-lc[0] = (value >> 16 & 0xFF) / 255; - this.alternativa3d::_-lc[1] = (value >> 8 & 0xFF) / 255; - this.alternativa3d::_-lc[2] = (value & 0xFF) / 255; + this.name_lc[0] = (value >> 16 & 0xFF) / 255; + this.name_lc[1] = (value >> 8 & 0xFF) / 255; + this.name_lc[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.name_lc,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..c7a4d7d 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_EM:IndexBuffer3D; alternativa3d var _numVertices:int; alternativa3d var _indices:Vector. = new Vector.(); - alternativa3d var §_-GM§:Vector. = new Vector.(); + alternativa3d var name_GM:Vector. = new Vector.(); alternativa3d var _attributesOffsets:Vector. = new Vector.(); - private var §_-QD§:Vector. = new Vector.(); + private var name_QD: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.name_GM.length && this.name_GM[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.name_GM.length < attribute) { - this.alternativa3d::_-GM.length = attribute + 1; + this.name_GM.length = attribute + 1; this.alternativa3d::_attributesOffsets.length = attribute + 1; - this.§_-QD§.length = attribute + 1; + this.name_QD.length = attribute + 1; } startIndex = i - stride; - this.alternativa3d::_-GM[attribute] = vBuffer; + this.name_GM[attribute] = vBuffer; this.alternativa3d::_attributesOffsets[attribute] = startIndex; - this.§_-QD§[attribute] = stride; + this.name_QD[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.name_GM.length && this.name_GM[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.name_GM.length ? this.name_GM[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.name_GM.length ? this.name_GM[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.name_GM.length ? this.name_GM[attribute] : null; if(vBuffer == null) { throw new Error("Attribute not found."); } - var stride:int = this.§_-QD§[attribute]; + var stride:int = this.name_QD[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.name_GM.length ? this.name_GM[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.name_QD[attribute]; var result:Vector. = new Vector.(stride * this.alternativa3d::_numVertices); var numMappings:int = int(vBuffer.attributes.length); var offset:int = this.alternativa3d::_attributesOffsets[attribute]; @@ -237,7 +237,7 @@ package alternativa.engine3d.resources override public function get isUploaded() : Boolean { - return this.alternativa3d::_-EM != null; + return this.name_EM != 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.name_EM != null) { - this.alternativa3d::_-EM.dispose(); - this.alternativa3d::_-EM = null; + this.name_EM.dispose(); + this.name_EM = 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.name_EM = context3D.createIndexBuffer(numIndices); + this.name_EM.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.name_EM != null) { - this.alternativa3d::_-EM.dispose(); - this.alternativa3d::_-EM = null; + this.name_EM.dispose(); + this.name_EM = 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.name_EM == null) { throw new Error("Geometry must be uploaded."); } - this.alternativa3d::_-EM.uploadFromVector(data,startOffset,count); + this.name_EM.uploadFromVector(data,startOffset,count); } public function updateIndexBufferInContextFromByteArray(data:ByteArray, byteArrayOffset:int, startOffset:int, count:int) : void { - if(this.alternativa3d::_-EM == null) + if(this.name_EM == null) { throw new Error("Geometry must be uploaded."); } - this.alternativa3d::_-EM.uploadFromByteArray(data,byteArrayOffset,startOffset,count); + this.name_EM.uploadFromByteArray(data,byteArrayOffset,startOffset,count); } public function updateVertexBufferInContextFromVector(index:int, data:Vector., startVertex:int, numVertices:int) : void { - if(this.alternativa3d::_-EM == null) + if(this.name_EM == 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.name_EM == 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.name_GM.length || (positionStream = this.name_GM[posAttribute]) == null) { throw new Error("Raycast require POSITION attribute"); } var positionBuffer:ByteArray = positionStream.data; var positionOffset:uint = uint(this.alternativa3d::_attributesOffsets[posAttribute] * 4); var stride:uint = positionStream.attributes.length * 4; - var hasUV:Boolean = uvAttribute < this.alternativa3d::_-GM.length && (uvStream = this.alternativa3d::_-GM[uvAttribute]) != null; + var hasUV:Boolean = uvAttribute < this.name_GM.length && (uvStream = this.name_GM[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.name_GM.length) { - stream = this.alternativa3d::_-GM[attribute]; + stream = this.name_GM[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.name_GM.length ? this.name_GM[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..363747e 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 name_VA:uint = 65500; - private const §_-Pp§:Number = 2 * Math.tan(Math.PI / 6); + private const name_Pp:Number = 2 * Math.tan(Math.PI / 6); - private const §_-SS§:uint = 7; + private const name_SS:uint = 7; alternativa3d var vertexBuffers:Vector.; alternativa3d var indexBuffers:Vector.; - private var §_-Rz§:Vector.; + private var name_Rz:Vector.; private var vertices:Vector.>; private var indices:Vector.>; - private var §_-ix§:int = 0; + private var name_ix:int = 0; - private var §_-dP§:uint = 0; + private var name_dP: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.name_ix; ) { 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.name_Rz[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.name_SS,this.name_SS); + vBuffer.uploadFromVector(verts,0,verts.length / this.name_SS); 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.name_ix; ) { 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.name_ix; ) { 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.name_Rz = new Vector.(1); + this.name_dP = 0; } alternativa3d function updateBoundBox(boundBox:BoundBox, transform:Transform3D = null) : void @@ -133,7 +133,7 @@ package alternativa.engine3d.resources var x:Number = NaN; var y:Number = NaN; var z:Number = NaN; - for(var i:int = 0,var count:int = int(this.vertices.length); i < count; i++) + for(var i:int = 0, count:int = int(this.vertices.length); i < count; i++) { for(j = 0,vcount = int(this.vertices[i].length); j < vcount; ) { @@ -177,7 +177,7 @@ package alternativa.engine3d.resources { boundBox.maxZ = z; } - j += this.§_-SS§; + j += this.name_SS; } } } @@ -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.name_ix; ) { 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.name_Rz[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.name_Pp / camera.view.alternativa3d::_height,0,camera.nearClipping,thickness); drawUnit.alternativa3d::setVertexConstantsFromTransform(2,object.alternativa3d::localToCameraTransform); drawUnit.alternativa3d::setProjectionConstants(camera,5); drawUnit.alternativa3d::setFragmentConstantsFromNumbers(0,color[0],color[1],color[2],color[3]); @@ -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.name_ix]; + var currentIndices:Vector. = this.indices[this.name_ix]; + var verticesCount:uint = currentVertices.length / this.name_SS; + if(verticesCount > this.name_VA - 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.name_dP = 0; + ++this.name_ix; + this.name_Rz[this.name_ix] = 0; + currentVertices = this.vertices[this.name_ix] = new Vector.(); + currentIndices = this.indices[this.name_ix] = new Vector.(); + this.alternativa3d::vertexBuffers.length = this.name_ix + 1; + this.alternativa3d::indexBuffers.length = this.name_ix + 1; } else { - this.§_-Rz§[this.§_-ix§] += 2; + this.name_Rz[this.name_ix] += 2; } currentVertices.push(v1x,v1y,v1z,0.5,v2x,v2y,v2z,v2x,v2y,v2z,-0.5,v1x,v1y,v1z,v1x,v1y,v1z,-0.5,v2x,v2y,v2z,v2x,v2y,v2z,0.5,v1x,v1y,v1z); - currentIndices.push(this.§_-dP§,this.§_-dP§ + 1,this.§_-dP§ + 2,this.§_-dP§ + 3,this.§_-dP§ + 2,this.§_-dP§ + 1); - this.§_-dP§ += 4; + currentIndices.push(this.name_dP,this.name_dP + 1,this.name_dP + 2,this.name_dP + 3,this.name_dP + 2,this.name_dP + 1); + this.name_dP += 4; } } } diff --git a/src/alternativa/engine3d/shadows/DirectionalShadowRenderer.as b/src/alternativa/engine3d/shadows/DirectionalShadowRenderer.as index 9490297..cf8dda1 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 name_qg:Object3D; private var context:Context3D; private var shadowMap:Texture; - private var §_-FQ§:Number; + private var name_FQ:Number; private var light:DirectionalLight; - alternativa3d var §_-UK§:Matrix3D = new Matrix3D(); + alternativa3d var name_UK:Matrix3D = new Matrix3D(); private var debugObject:Mesh; - public var §_-Vg§:TextureMaterial = new TextureMaterial(); + public var name_Vg:TextureMaterial = new TextureMaterial(); - private var §_-Ez§:TextureResource = new ExternalTextureResource("null"); + private var name_Ez:TextureResource = new ExternalTextureResource("null"); - private var §_-M§:Number = 0; + private var name_M:Number = 0; private var pcfOffsets:Vector.; - private var §_-1a§:Boolean = false; + private var name_1a:Boolean = false; - private var §_-bD§:Matrix3D = new Matrix3D(); + private var name_bD: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.name_FQ = worldSize; + this.name_M = pcfSize / worldSize / 255; + if(this.name_M > 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.name_M,-this.name_M,0,1 / 4,-this.name_M,this.name_M,0,1,this.name_M,-this.name_M,0,1,this.name_M,this.name_M,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.name_Ez.alternativa3d::_texture = this.shadowMap; + this.name_Vg.diffuseMap = this.name_Ez; + this.name_Vg.alpha = 0.9; + this.name_Vg.name_L4 = true; + this.debugObject = new Box(worldSize,worldSize,1,1,1,1,false,this.name_Vg); 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.name_Oy; i++) { - surface = mesh.alternativa3d::_-eW[i]; + surface = mesh.name_eW[i]; if(!(surface.material == null || !surface.material.alternativa3d::canDrawInShadowMap)) { - context.drawTriangles(mesh.geometry.alternativa3d::_-EM,surface.indexBegin,surface.numTriangles); + context.drawTriangles(mesh.geometry.name_EM,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.name_FQ; } 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.name_FQ = value; + var newDebug:Mesh = new Box(this.name_FQ,this.name_FQ,1,1,1,1,false,this.name_Vg); 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.name_1a) { this.light.addChild(this.debugObject); } @@ -326,13 +326,13 @@ package alternativa.engine3d.shadows override public function get debug() : Boolean { - return this.§_-1a§; + return this.name_1a; } override public function set debug(value:Boolean) : void { - this.§_-1a§ = value; - if(this.§_-1a§) + this.name_1a = value; + if(this.name_1a) { 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.name_UK); 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.name_qg.alternativa3d::localToCameraTransform.compose(this.name_qg.alternativa3d::_x,this.name_qg.alternativa3d::_y,this.name_qg.alternativa3d::_z,this.name_qg.alternativa3d::_rotationX,this.name_qg.alternativa3d::_rotationY,this.name_qg.alternativa3d::_rotationZ,this.name_qg.alternativa3d::_scaleX,this.name_qg.alternativa3d::_scaleY,this.name_qg.alternativa3d::_scaleZ); + for(root = this.name_qg; root.alternativa3d::_parent != null; ) { root = root.alternativa3d::_parent; root.alternativa3d::localToGlobalTransform.compose(root.alternativa3d::_x,root.alternativa3d::_y,root.alternativa3d::_z,root.alternativa3d::_rotationX,root.alternativa3d::_rotationY,root.alternativa3d::_rotationZ,root.alternativa3d::_scaleX,root.alternativa3d::_scaleY,root.alternativa3d::_scaleZ); - this.§_-qg§.alternativa3d::localToCameraTransform.append(root.alternativa3d::localToGlobalTransform); + this.name_qg.alternativa3d::localToCameraTransform.append(root.alternativa3d::localToGlobalTransform); } this.light.alternativa3d::localToGlobalTransform.compose(this.light.alternativa3d::_x,this.light.alternativa3d::_y,this.light.alternativa3d::_z,this.light.alternativa3d::_rotationX,this.light.alternativa3d::_rotationY,this.light.alternativa3d::_rotationZ,this.light.alternativa3d::_scaleX,this.light.alternativa3d::_scaleY,this.light.alternativa3d::_scaleZ); for(root = this.light; root.alternativa3d::_parent != null; ) @@ -372,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.name_qg.alternativa3d::localToCameraTransform.append(this.light.alternativa3d::globalToLocalTransform); + var t:Transform3D = this.name_qg.alternativa3d::localToCameraTransform; this.center.x = t.a * this.offset.x + t.b * this.offset.y + t.c * this.offset.z + t.d; this.center.y = t.e * this.offset.x + t.f * this.offset.y + t.g * this.offset.z + t.h; this.center.z = t.i * this.offset.x + t.j * this.offset.y + t.k * this.offset.z + t.l; - this.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.name_bD,this.uvMatrix,this.center,this.name_FQ,this.name_FQ,this.name_FQ); + alternativa3d::copyMatrixFromTransform(this.name_UK,this.light.alternativa3d::globalToLocalTransform); + this.name_UK.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.name_FQ / 2; + this.name_Vg.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.name_qg,this.light,this.name_bD); this.context.setRenderToBackBuffer(); cleanContext(this.context); - this.§_-Vg§.diffuseMap = this.§_-Ez§; + this.name_Vg.diffuseMap = this.name_Ez; } 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.name_M > 0,index); } override public function getFIntensityShader() : Procedure { - return initFShader(false,this.§_-M§ > 0,0,true); + return initFShader(false,this.name_M > 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.name_UK); 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.name_M > 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..7e6391b 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 name_if:String; public var active:Boolean = false; @@ -28,7 +28,7 @@ package alternativa.engine3d.shadows { super(); ++counter; - this.alternativa3d::if = "M" + counter.toString(); + this.name_if = "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..4031565 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 name_jy:Dictionary = new Dictionary(); - private var §_-gR§:int; + private var name_gR:int; - private var §_-i-§:int; + private var name_i:int; - private var §_-O0§:Vector. = new Vector.(); + private var name_O0:Vector. = new Vector.(); - private var §_-aJ§:int; + private var name_aJ:int; public function ShadowsSystem() { @@ -34,7 +34,7 @@ package alternativa.engine3d.shadows { return; } - this.§_-i-§ = 0; + this.name_i = 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.name_O0[this.name_i] = renderer; + ++this.name_i; } 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.name_gR = 0; + this.name_aJ = 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.name_i; ) { - renderer = this.§_-O0§[i]; + renderer = this.name_O0[i]; if(child.useShadow) { if(child.boundBox == null || renderer.alternativa3d::cullReciever(child.boundBox,child)) { - ++this.§_-gR§; + ++this.name_gR; if(value == null) { - value = this.§_-jy§[child]; + value = this.name_jy[child]; if(value == null) { value = new Vector.(); - this.§_-jy§[child] = value; + this.name_jy[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.name_aJ) { - this.§_-aJ§ = numShadowRenderers; + this.name_aJ = numShadowRenderers; } if(numShadowRenderers > MAX_SHADOWMAPS) { diff --git a/src/alternativa/engine3d/shadows/StaticShadowRenderer.as b/src/alternativa/engine3d/shadows/StaticShadowRenderer.as index c4c616e..9c26dbc 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 name_f7:Vector.> = new Vector.>(); - private var §_-md§:Vector.> = new Vector.>(); + private var name_md:Vector.> = new Vector.>(); private var light:DirectionalLight; - private var §_-65§:Transform3D = new Transform3D(); + private var name_65:Transform3D = new Transform3D(); - private var §_-1a§:Boolean = false; + private var name_1a:Boolean = false; - private var §_-4u§:Object3D; + private var name_4u:Object3D; - private var §_-Mf§:Dictionary = new Dictionary(); + private var name_Mf:Dictionary = new Dictionary(); - private var §_-M§:Number = 0; + private var name_M:Number = 0; - private var §_-bD§:Matrix3D = new Matrix3D(); + private var name_bD: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.name_M = 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.name_Mf[object] = true; } public function removeReciever(object:Object3D) : void { - delete this.§_-Mf§[object]; + delete this.name_Mf[object]; } public function dispose() : void { var textures:Vector. = null; var texture:Texture = null; - for each(textures in this.§_-f7§) + for each(textures in this.name_f7) { for each(texture in textures) { texture.dispose(); } } - this.§_-f7§.length = 0; - this.§_-md§.length = 0; + this.name_f7.length = 0; + this.name_md.length = 0; } override alternativa3d function cullReciever(boundBox:BoundBox, object:Object3D) : Boolean { - return this.§_-Mf§[object]; + return this.name_Mf[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.name_65.copy(light.alternativa3d::globalToLocalTransform); object.alternativa3d::localToCameraTransform.append(light.alternativa3d::globalToLocalTransform); this.bounds.reset(); alternativa3d::calculateBoundBox(this.bounds,object); @@ -340,10 +340,10 @@ package 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.name_4u = new Object3D(); + if(this.name_1a) { - light.addChild(this.§_-4u§); + light.addChild(this.name_4u); } 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.name_bD,uvMatrix,leftX,leftY,frustumMinZ,leftX + width,leftY + height,frustumMaxZ); shadowMap = this.context.createTexture(this.partSize,this.partSize,Context3DTextureFormat.BGRA,true); this.context.setRenderToTexture(shadowMap,true,0,0); this.context.clear(1,1,1,0.5); cleanContext(this.context); - DirectionalShadowRenderer.alternativa3d::drawObjectToShadowMap(this.context,object,light,this.§_-bD§); + DirectionalShadowRenderer.alternativa3d::drawObjectToShadowMap(this.context,object,light,this.name_bD); 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.name_L4 = true; debugObject = new Box(width,height,1,1,1,1,false,material); debugObject.geometry.upload(this.context); debugObject.x = leftX + width / 2; debugObject.y = leftY + height / 2; debugObject.z = frustumMinZ; - this.§_-4u§.addChild(debugObject); + this.name_4u.addChild(debugObject); } - this.§_-f7§.push(maps); - this.§_-md§.push(matrices); + this.name_f7.push(maps); + this.name_md.push(matrices); xIndex++; } this.context.setRenderToBackBuffer(); - if(this.§_-M§ > 0) + if(this.name_M > 0) { - offset = this.§_-M§ / partWorldWidth; + offset = this.name_M / 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.name_1a; } override public function set debug(value:Boolean) : void { - this.§_-1a§ = value; - if(this.§_-4u§ != null) + this.name_1a = value; + if(this.name_4u != null) { if(value) { if(this.light != null) { - this.light.addChild(this.§_-4u§); + this.light.addChild(this.name_4u); } } - else if(this.§_-4u§.alternativa3d::_parent != null) + else if(this.name_4u.alternativa3d::_parent != null) { - this.§_-4u§.alternativa3d::removeFromParent(); + this.name_4u.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.name_M > 0,index); } override public function getFIntensityShader() : Procedure { - return initFShader(false,this.§_-M§ > 0,0,true); + return initFShader(false,this.name_M > 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.name_65); var coords:Vector3D = new Vector3D(objectToShadowMap.d,objectToShadowMap.h,objectToShadowMap.l); - var xIndex:int = (coords.x - this.bounds.minX) / (this.bounds.maxX - this.bounds.minX) * this.§_-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.name_f7.length; + xIndex = xIndex < 0 ? 0 : (xIndex >= this.name_f7.length ? int(this.name_f7.length - 1) : xIndex); + var maps:Vector. = this.name_f7[xIndex]; + var matrices:Vector. = this.name_md[xIndex]; var yIndex:int = (coords.y - this.bounds.minY) / (this.bounds.maxY - this.bounds.minY) * maps.length; yIndex = yIndex < 0 ? 0 : (yIndex >= maps.length ? int(maps.length - 1) : yIndex); var shadowMap:Texture = maps[yIndex]; @@ -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.name_M > 0) { drawUnit.alternativa3d::setFragmentConstantsFromVector(program.fragmentShader.getVariableIndex("cPCF0"),pcfOffsets,pcfOffsets.length >> 2); } diff --git a/src/alternativa/osgi/OSGi.as b/src/alternativa/osgi/OSGi.as index cc46c56..1c3fef2 100644 --- a/src/alternativa/osgi/OSGi.as +++ b/src/alternativa/osgi/OSGi.as @@ -14,11 +14,11 @@ package alternativa.osgi private static const LOG_CHANNEL:String = "osgi"; - private var §_-2M§:Object = {}; + private var name_2M:Object = {}; private var services:Dictionary = new Dictionary(); - private var §_-dp§:Dictionary = new Dictionary(); + private var name_dp:Dictionary = new Dictionary(); public function OSGi() { @@ -41,11 +41,11 @@ package alternativa.osgi var activators:Vector. = null; var i:int = 0; var activator:IBundleActivator = null; - if(this.§_-2M§[bundleDescriptor.name] == null) + if(this.name_2M[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.name_2M[bundleDescriptor.name] = bundleDescriptor; activators = bundleDescriptor.activators; if(activators != null) { @@ -70,7 +70,7 @@ package alternativa.osgi { throw new ArgumentError("Bundle name is null"); } - var bundleDescriptor:IBundleDescriptor = this.§_-2M§[bundleName]; + var bundleDescriptor:IBundleDescriptor = this.name_2M[bundleName]; if(bundleDescriptor == null) { throw new Error("Bundle " + bundleName + " not found"); @@ -85,7 +85,7 @@ package alternativa.osgi activator.stop(this); } } - delete this.§_-2M§[bundleName]; + delete this.name_2M[bundleName]; clientLog.log(LOG_CHANNEL,"Bundle " + bundleName + " has been uninstalled"); } @@ -96,9 +96,9 @@ package alternativa.osgi if(this.services[serviceInterface] == null) { this.services[serviceInterface] = serviceImplementation; - if(this.§_-dp§[serviceInterface] != null) + if(this.name_dp[serviceInterface] != null) { - injectPoints = this.§_-dp§[serviceInterface]; + injectPoints = this.name_dp[serviceInterface]; for each(ip in injectPoints) { ip.injectOwner[ip.injectFieldName] = serviceImplementation; @@ -125,7 +125,7 @@ package alternativa.osgi if(this.services[serviceInterface] != null) { delete this.services[serviceInterface]; - delete this.§_-dp§[serviceInterface]; + delete this.name_dp[serviceInterface]; clientLog.log(LOG_CHANNEL,"Service has been unregistered: " + serviceInterface); } } @@ -137,11 +137,11 @@ package alternativa.osgi public function injectService(serviceInterface:Class, injectFieldOwner:Class, injectFieldName:String) : void { - if(!this.§_-dp§[serviceInterface]) + if(!this.name_dp[serviceInterface]) { - this.§_-dp§[serviceInterface] = new Vector.(); + this.name_dp[serviceInterface] = new Vector.(); } - this.§_-dp§[serviceInterface].push(new InjectPoint(injectFieldOwner,injectFieldName)); + this.name_dp[serviceInterface].push(new InjectPoint(injectFieldOwner,injectFieldName)); injectFieldOwner[injectFieldName] = this.services[serviceInterface]; clientLog.log(LOG_CHANNEL,"Inject %1 have been processed. Current value is %2",injectFieldOwner + "." + injectFieldName,this.services[serviceInterface]); } @@ -150,7 +150,7 @@ package alternativa.osgi { var bundleDescriptor:IBundleDescriptor = null; var list:Vector. = new Vector.(); - for each(bundleDescriptor in this.§_-2M§) + for each(bundleDescriptor in this.name_2M) { list.push(bundleDescriptor); } diff --git a/src/alternativa/osgi/bundle/BundleDescriptor.as b/src/alternativa/osgi/bundle/BundleDescriptor.as index 46cb70d..1ee9704 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 name_lF:Vector.; - private var §_-7V§:Properties; + private var name_7V: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.name_7V = 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.name_lF = 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.name_lF.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.name_lF; } public function get properties() : Properties { - return this.§_-7V§; + return this.name_7V; } } } diff --git a/src/alternativa/osgi/service/console/Console.as b/src/alternativa/osgi/service/console/Console.as index 4b9dd10..583a5c2 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 name_mB:Sprite; private var input:TextField; - private var §_-2O§:Vector. = new Vector.(); + private var name_2O:Vector. = new Vector.(); - private var §_-V8§:int; + private var name_V8:int; - private var §_-k3§:int; + private var name_k3:int; - private var §_-5f§:int = 0; + private var name_5f:int = 0; - private var §_-Y3§:Boolean; + private var name_Y3:Boolean; private var visible:Boolean; - private var §_-Fe§:Array = []; + private var name_Fe:Array = []; - private var §_-hY§:int = 0; + private var name_hY:int = 0; - private var §_-Pl§:Object = {}; + private var name_Pl:Object = {}; - private var §_-I9§:Object = {}; + private var name_I9:Object = {}; - private var §_-HF§:int; + private var name_HF:int; - private var §_-6U§:int; + private var name_6U:int; - private var §_-gO§:int; + private var name_gO:int; private var buffer:ICircularStringBuffer; - private var §_-Nl§:int; + private var name_Nl:int; - private var §_-Gl§:int; + private var name_Gl:int; private var align:int; - private var §_-0P§:uint = 16777215; + private var name_0P:uint = 16777215; - private var §_-Su§:uint = 0; + private var name_Su:uint = 0; - private var §_-S9§:Number = 1; + private var name_S9: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.name_I9[variable.getName()] = variable; } public function removeVariable(variableName:String) : void { - delete this.§_-I9§[variableName]; + delete this.name_I9[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.name_gO <= this.name_HF; 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.name_gO <= this.name_HF; 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.name_gO <= this.name_HF; 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.name_gO <= this.name_HF; 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.name_Nl && heightPercent == this.name_Gl) { return; } - this.§_-Nl§ = widthPercent; - this.§_-Gl§ = heightPercent; + this.name_Nl = widthPercent; + this.name_Gl = heightPercent; this.updateSize(); this.updateAlignment(); } public function set width(widthPercent:int) : void { - this.setSize(widthPercent,this.§_-Gl§); + this.setSize(widthPercent,this.name_Gl); } public function get width() : int { - return this.§_-Nl§; + return this.name_Nl; } public function set height(heightPercent:int) : void { - this.setSize(this.§_-Nl§,heightPercent); + this.setSize(this.name_Nl,heightPercent); } public function get height() : int { - return this.§_-Gl§; + return this.name_Gl; } 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.name_Pl[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.name_Pl[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.name_Fe.length); + if(len == 0 || this.name_Fe[len - 1] != text) { - this.§_-Fe§.push(text); + this.name_Fe.push(text); } - this.§_-hY§ = len + 1; + this.name_hY = len + 1; var tokens:Array = text.match(TOKENIZER); var commandName:String = tokens.shift(); - var variable:ConsoleVar = this.§_-I9§[commandName]; + var variable:ConsoleVar = this.name_I9[commandName]; if(variable != null) { variable.processConsoleInput(this,tokens); } else { - _loc6_ = this.§_-Pl§[commandName]; + _loc6_ = this.name_Pl[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.name_S9 = value; this.updateSize(); } public function get alpha() : Number { - return this.§_-S9§; + return this.name_S9; } private function calcTextMetrics(stage:Stage) : void @@ -335,8 +335,8 @@ package alternativa.osgi.service.console tf.defaultTextFormat = DEFAULT_TEXT_FORMAT; tf.text = "j"; stage.addChild(tf); - this.§_-V8§ = tf.textWidth; - this.§_-k3§ = tf.textHeight + 4; + this.name_V8 = tf.textWidth; + this.name_k3 = 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.name_mB = new Sprite(); + this.name_mB.addEventListener(MouseEvent.MOUSE_WHEEL,this.onMouseWheel); + this.container.addChild(this.name_mB); } private function resizeOutput(w:int, h:int) : void { - this.§_-HF§ = h / (this.§_-k3§ + this.§_-5f§); - this.§_-6U§ = w / this.§_-V8§ - 1; + this.name_HF = h / (this.name_k3 + this.name_5f); + this.name_6U = w / this.name_V8 - 1; this.updateTextFields(w); this.scrollOutput(0); - var g:Graphics = this.§_-mB§.graphics; + var g:Graphics = this.name_mB.graphics; g.clear(); - g.beginFill(this.§_-0P§,this.§_-S9§); + g.beginFill(this.name_0P,this.name_S9); 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.name_2O.length > this.name_HF; ) { - this.§_-mB§.removeChild(this.§_-2O§.pop()); + this.name_mB.removeChild(this.name_2O.pop()); } - while(this.§_-2O§.length < this.§_-HF§) + while(this.name_2O.length < this.name_HF) { this.createTextField(); } - var lineHeight:int = this.§_-k3§ + this.§_-5f§; - for(var i:int = 0; i < this.§_-2O§.length; i++) + var lineHeight:int = this.name_k3 + this.name_5f; + for(var i:int = 0; i < this.name_2O.length; i++) { - tf = this.§_-2O§[i]; + tf = this.name_2O[i]; tf.y = i * lineHeight; tf.width = w; } @@ -398,24 +398,24 @@ package alternativa.osgi.service.console private function createTextField() : void { var tf:TextField = new TextField(); - tf.height = this.§_-k3§; + tf.height = this.name_k3; tf.defaultTextFormat = DEFAULT_TEXT_FORMAT; tf.tabEnabled = false; tf.selectable = true; - this.§_-mB§.addChild(tf); - this.§_-2O§.push(tf); + this.name_mB.addChild(tf); + this.name_2O.push(tf); } private function scrollOutput(delta:int) : void { - this.§_-gO§ += delta; - if(this.§_-gO§ + this.§_-HF§ > this.buffer.size) + this.name_gO += delta; + if(this.name_gO + this.name_HF > this.buffer.size) { - this.§_-gO§ = this.buffer.size - this.§_-HF§; + this.name_gO = this.buffer.size - this.name_HF; } - if(this.§_-gO§ < 0) + if(this.name_gO < 0) { - this.§_-gO§ = 0; + this.name_gO = 0; } this.updateOutput(); } @@ -431,14 +431,14 @@ package alternativa.osgi.service.console private function printPage() : void { var pageLineIndex:int = 0; - var iterator:IStringBufferIterator = this.buffer.getIterator(this.§_-gO§); - while(pageLineIndex < this.§_-HF§ && Boolean(iterator.hasNext())) + var iterator:IStringBufferIterator = this.buffer.getIterator(this.name_gO); + while(pageLineIndex < this.name_HF && Boolean(iterator.hasNext())) { - TextField(this.§_-2O§[pageLineIndex++]).text = iterator.getNext(); + TextField(this.name_2O[pageLineIndex++]).text = iterator.getNext(); } - while(pageLineIndex < this.§_-HF§) + while(pageLineIndex < this.name_HF) { - TextField(this.§_-2O§[pageLineIndex++]).text = ""; + TextField(this.name_2O[pageLineIndex++]).text = ""; } } @@ -446,7 +446,7 @@ package alternativa.osgi.service.console { if(this.isToggleKey(e)) { - this.§_-Y3§ = true; + this.name_Y3 = 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.name_HF); break; case Keyboard.PAGE_DOWN: - this.scrollOutput(this.§_-HF§); + this.scrollOutput(this.name_HF); } e.stopPropagation(); } @@ -486,10 +486,10 @@ package alternativa.osgi.service.console private function onTextInput(e:TextEvent) : void { - if(this.§_-Y3§) + if(this.name_Y3) { e.preventDefault(); - this.§_-Y3§ = false; + this.name_Y3 = false; } } @@ -509,26 +509,26 @@ package alternativa.osgi.service.console private function historyUp() : void { - if(this.§_-hY§ == 0) + if(this.name_hY == 0) { return; } - --this.§_-hY§; - var command:String = this.§_-Fe§[this.§_-hY§]; + --this.name_hY; + var command:String = this.name_Fe[this.name_hY]; this.input.text = command == null ? "" : command; } private function historyDown() : void { - ++this.§_-hY§; - if(this.§_-hY§ >= this.§_-Fe§.length) + ++this.name_hY; + if(this.name_hY >= this.name_Fe.length) { - this.§_-hY§ = this.§_-Fe§.length; + this.name_hY = this.name_Fe.length; this.input.text = ""; } else { - this.input.text = this.§_-Fe§[this.§_-hY§]; + this.input.text = this.name_Fe[this.name_hY]; } } @@ -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.name_6U)); linesAdded++; - i += this.§_-6U§; + i += this.name_6U; } } } @@ -580,7 +580,7 @@ package alternativa.osgi.service.console var line:String = null; var i:int = 0; var lines:Array = s.split(LINE_SPLITTER); - var effectiveLineWidth:int = this.§_-6U§ - prefix.length; + var effectiveLineWidth:int = this.name_6U - prefix.length; for each(line in lines) { if(!(Boolean(this.filter) && line.indexOf(this.filter) < 0)) @@ -616,8 +616,8 @@ package alternativa.osgi.service.console private function updateSize() : void { - var pixelHeight:int = 0.01 * this.§_-Gl§ * this.stage.stageHeight; - var pixelWidth:int = 0.01 * this.§_-Nl§ * this.stage.stageWidth; + var pixelHeight:int = 0.01 * this.name_Gl * this.stage.stageHeight; + var pixelWidth:int = 0.01 * this.name_Nl * 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.name_Pl) { 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.name_Nl); } else { - this.setSize(int(params[0]),this.§_-Gl§); + this.setSize(int(params[0]),this.name_Gl); } } @@ -730,11 +730,11 @@ package alternativa.osgi.service.console { if(params.length == 0) { - this.addText("Height=" + this.§_-Gl§); + this.addText("Height=" + this.name_Gl); } else { - this.setSize(this.§_-Nl§,int(params[0])); + this.setSize(this.name_Nl,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.name_S9); } 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.name_0P); } else { - this.§_-0P§ = uint(params[0]); + this.name_0P = uint(params[0]); this.updateSize(); - this.input.backgroundColor = this.§_-0P§; - this.addText("Background color set to " + this.§_-0P§); + this.input.backgroundColor = this.name_0P; + this.addText("Background color set to " + this.name_0P); } } @@ -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.name_Su); } else { - this.§_-Su§ = uint(params[0]); - DEFAULT_TEXT_FORMAT.color = this.§_-Su§; - this.input.textColor = this.§_-Su§; + this.name_Su = uint(params[0]); + DEFAULT_TEXT_FORMAT.color = this.name_Su; + this.input.textColor = this.name_Su; this.input.defaultTextFormat = DEFAULT_TEXT_FORMAT; - for each(_loc3_ in this.§_-2O§) + for each(_loc3_ in this.name_2O) { - _loc3_.textColor = this.§_-Su§; + _loc3_.textColor = this.name_Su; _loc3_.defaultTextFormat = DEFAULT_TEXT_FORMAT; } - this.addText("Foreground color set to " + this.§_-Su§); + this.addText("Foreground color set to " + this.name_Su); } } @@ -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.name_I9) { if(start == null || start == "" || name.indexOf(start) == 0) { - variable = this.§_-I9§[name]; + variable = this.name_I9[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..57ec43d 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 name_We:Stage; - private var §_-j§:DisplayObjectContainer; + private var name_j:DisplayObjectContainer; - private var §finally§:DisplayObjectContainer; + private var name_finally:DisplayObjectContainer; - private var §_-TJ§:DisplayObjectContainer; + private var name_TJ:DisplayObjectContainer; - private var §_-6o§:DisplayObjectContainer; + private var name_6o:DisplayObjectContainer; - private var §_-Xl§:DisplayObjectContainer; + private var name_Xl:DisplayObjectContainer; - private var §_-Ha§:DisplayObjectContainer; + private var name_Ha:DisplayObjectContainer; - private var §_-5X§:DisplayObjectContainer; + private var name_5X:DisplayObjectContainer; - private var §_-Qq§:DisplayObjectContainer; + private var name_Qq:DisplayObjectContainer; - private var §_-Ow§:DisplayObjectContainer; + private var name_Ow:DisplayObjectContainer; public function Display(rootContainer:DisplayObjectContainer) { super(); - this.§_-We§ = rootContainer.stage; - this.§_-j§ = rootContainer; - this.§finally§ = this.addLayerSprite(); - this.§_-TJ§ = this.addLayerSprite(); - this.§_-6o§ = this.addLayerSprite(); - this.§_-Xl§ = this.addLayerSprite(); - this.§_-Ha§ = this.addLayerSprite(); - this.§_-5X§ = this.addLayerSprite(); - this.§_-Qq§ = this.addLayerSprite(); - this.§_-Ow§ = this.addLayerSprite(); + this.name_We = rootContainer.stage; + this.name_j = rootContainer; + this.name_finally = this.addLayerSprite(); + this.name_TJ = this.addLayerSprite(); + this.name_6o = this.addLayerSprite(); + this.name_Xl = this.addLayerSprite(); + this.name_Ha = this.addLayerSprite(); + this.name_5X = this.addLayerSprite(); + this.name_Qq = this.addLayerSprite(); + this.name_Ow = 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.name_j.addChild(sprite); return sprite; } public function get stage() : Stage { - return this.§_-We§; + return this.name_We; } public function get mainContainer() : DisplayObjectContainer { - return this.§_-j§; + return this.name_j; } public function get backgroundLayer() : DisplayObjectContainer { - return this.§finally§; + return this.name_finally; } public function get contentLayer() : DisplayObjectContainer { - return this.§_-TJ§; + return this.name_TJ; } public function get contentUILayer() : DisplayObjectContainer { - return this.§_-6o§; + return this.name_6o; } public function get systemLayer() : DisplayObjectContainer { - return this.§_-Xl§; + return this.name_Xl; } public function get systemUILayer() : DisplayObjectContainer { - return this.§_-Ha§; + return this.name_Ha; } public function get dialogsLayer() : DisplayObjectContainer { - return this.§_-5X§; + return this.name_5X; } public function get noticesLayer() : DisplayObjectContainer { - return this.§_-Qq§; + return this.name_Qq; } public function get cursorLayer() : DisplayObjectContainer { - return this.§_-Ow§; + return this.name_Ow; } } } diff --git a/src/alternativa/osgi/service/dump/DumpService.as b/src/alternativa/osgi/service/dump/DumpService.as index 5d2bda3..d0faf43 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 name_gQ:Dictionary; - private var §_-G8§:Vector.; + private var name_G8: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.name_gQ = new Dictionary(false); + this.name_G8 = new Vector.(); } public function registerDumper(dumper:IDumper) : void { - if(this.§_-gQ§[dumper.dumperName] != null) + if(this.name_gQ[dumper.dumperName] != null) { throw new Error("Dumper is already registered"); } - this.§_-gQ§[dumper.dumperName] = dumper; - this.§_-G8§.push(dumper); + this.name_gQ[dumper.dumperName] = dumper; + this.name_G8.push(dumper); } public function unregisterDumper(dumperName:String) : void { - var dumper:IDumper = this.§_-gQ§[dumperName]; + var dumper:IDumper = this.name_gQ[dumperName]; if(dumper != null) { - this.§_-G8§.splice(this.§_-G8§.indexOf(dumper),1); - delete this.§_-gQ§[dumperName]; + this.name_G8.splice(this.name_G8.indexOf(dumper),1); + delete this.name_gQ[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.name_G8.length) { - dumper = this.§_-G8§[index]; + dumper = this.name_G8[index]; } } else { - dumper = this.§_-gQ§[dumperName]; + dumper = this.name_gQ[dumperName]; } if(dumper == null) { @@ -71,20 +71,20 @@ package alternativa.osgi.service.dump public function get dumpersByName() : Dictionary { - return this.§_-gQ§; + return this.name_gQ; } public function get dumpersList() : Vector. { - return this.§_-G8§; + return this.name_G8; } private function getDumperList() : String { var s:String = ""; - for(var i:int = 0; i < this.§_-G8§.length; i++) + for(var i:int = 0; i < this.name_G8.length; i++) { - s += i.toString() + " " + this.§_-G8§[i].dumperName + "\n"; + s += i.toString() + " " + this.name_G8[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..11ddcb8 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 name_QJ:Vector.; public function LauncherParams(urlParams:Properties, startupLibraryInfos:Vector.) { super(); this.urlParams = urlParams; - this.§_-QJ§ = startupLibraryInfos; + this.name_QJ = 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.name_QJ; } 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..749d98c 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 name_bK:Object = {}; private var numbers:Object = {}; - private var §_-op§:Object = {}; + private var name_op:Object = {}; - private var §_-VI§:String; + private var name_VI:String; - private var §_-4p§:String; + private var name_4p:String; public function LocaleService(language:String, defaultLanguage:String) { super(); - this.§_-VI§ = language; - this.§_-4p§ = defaultLanguage; + this.name_VI = language; + this.name_4p = 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.name_bK[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.name_op[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.name_bK[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.name_op[id]; } public function get language() : String { - return this.§_-VI§; + return this.name_VI; } public function get defaultLanguage() : String { - return this.§_-4p§; + return this.name_4p; } } } diff --git a/src/alternativa/osgi/service/network/NetworkService.as b/src/alternativa/osgi/service/network/NetworkService.as index b0d8fe8..71a095a 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 name_oQ:String; - private var §_-O7§:Vector.; + private var name_O7:Vector.; - private var §_-5u§:String; + private var name_5u:String; public function NetworkService(controlServerAddress:String, controlServerPorts:Vector., resourcesRootUrl:String) { super(); - this.§_-oQ§ = controlServerAddress; - this.§_-O7§ = controlServerPorts; - this.§_-5u§ = resourcesRootUrl; + this.name_oQ = controlServerAddress; + this.name_O7 = controlServerPorts; + this.name_5u = resourcesRootUrl; } public function get controlServerAddress() : String { - return this.§_-oQ§; + return this.name_oQ; } public function get controlServerPorts() : Vector. { - return this.§_-O7§; + return this.name_O7; } public function get resourcesRootUrl() : String { - return this.§_-5u§; + return this.name_5u; } public function getLastPort(host:String) : int diff --git a/src/alternativa/physics/Body.as b/src/alternativa/physics/Body.as index 0a68a60..5f1e290 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 name_Sb:Boolean = true; - public var §_-N4§:Boolean = false; + public var name_N4:Boolean = false; - public var §_-ia§:int; + public var name_ia:int; - public var §_-N0§:Boolean = false; + public var name_N0:Boolean = false; - public var §_-fA§:Boolean = true; + public var name_fA: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 name_U3:BodyState = new BodyState(); - public var §_-1G§:Vector3 = new Vector3(); + public var name_1G:Vector3 = new Vector3(); - public var §_-fR§:Vector3 = new Vector3(); + public var name_fR: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 name_nX:Matrix3 = new Matrix3(); public var baseMatrix:Matrix3 = new Matrix3(); public var collisionPrimitives:CollisionPrimitiveList; - public var §_-iu§:Vector3 = new Vector3(); + public var name_iu:Vector3 = new Vector3(); - public var §_-Xr§:Vector3 = new Vector3(); + public var name_Xr: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.name_U3.position.x * t1 + this.state.position.x * t; + pos.y = this.name_U3.position.y * t1 + this.state.position.y * t; + pos.z = this.name_U3.position.z * t1 + this.state.position.z * t; + orientation.w = this.name_U3.orientation.w * t1 + this.state.orientation.w * t; + orientation.x = this.name_U3.orientation.x * t1 + this.state.orientation.x * t; + orientation.y = this.name_U3.orientation.y * t1 + this.state.orientation.y * t; + orientation.z = this.name_U3.orientation.z * t1 + this.state.orientation.z * t; } public function interpolateSLERP(t:Number, pos:Vector3, orientation:Quaternion) : void { var t1:Number = NaN; t1 = 1 - t; - pos.x = this.§_-U3§.position.x * t1 + this.state.position.x * t; - pos.y = this.§_-U3§.position.y * t1 + this.state.position.y * t; - pos.z = this.§_-U3§.position.z * t1 + this.state.position.z * t; - orientation.slerp(this.§_-U3§.orientation,this.state.orientation,t); + pos.x = this.name_U3.position.x * t1 + this.state.position.x * t; + pos.y = this.name_U3.position.y * t1 + this.state.position.y * t; + pos.z = this.name_U3.position.z * t1 + this.state.position.z * t; + orientation.slerp(this.name_U3.orientation,this.state.orientation,t); } public function interpolateToMatrix(t:Number, m:Matrix4) : void { var t1:Number = NaN; t1 = 1 - t; - m.d = this.§_-U3§.position.x * t1 + this.state.position.x * t; - m.h = this.§_-U3§.position.y * t1 + this.state.position.y * t; - m.l = this.§_-U3§.position.z * t1 + this.state.position.z * t; - _q.w = this.§_-U3§.orientation.w * t1 + this.state.orientation.w * t; - _q.x = this.§_-U3§.orientation.x * t1 + this.state.orientation.x * t; - _q.y = this.§_-U3§.orientation.y * t1 + this.state.orientation.y * t; - _q.z = this.§_-U3§.orientation.z * t1 + this.state.orientation.z * t; + m.d = this.name_U3.position.x * t1 + this.state.position.x * t; + m.h = this.name_U3.position.y * t1 + this.state.position.y * t; + m.l = this.name_U3.position.z * t1 + this.state.position.z * t; + _q.w = this.name_U3.orientation.w * t1 + this.state.orientation.w * t; + _q.x = this.name_U3.orientation.x * t1 + this.state.orientation.x * t; + _q.y = this.name_U3.orientation.y * t1 + this.state.orientation.y * t; + _q.z = this.name_U3.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.name_U3.position.x * t1 + this.state.position.x * t; + m.h = this.name_U3.position.y * t1 + this.state.position.y * t; + m.l = this.name_U3.position.z * t1 + this.state.position.z * t; + _q.slerp(this.name_U3.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.name_nX.a * x + this.name_nX.b * y + this.name_nX.c * z; + this.state.rotation.y += this.name_nX.e * x + this.name_nX.f * y + this.name_nX.g * z; + this.state.rotation.z += this.name_nX.i * x + this.name_nX.j * y + this.name_nX.k * z; } public function addForce(f:Vector3) : void { - this.§_-iu§.add(f); + this.name_iu.add(f); } public function addForceXYZ(fx:Number, fy:Number, fz:Number) : void { - this.§_-iu§.x += fx; - this.§_-iu§.y += fy; - this.§_-iu§.z += fz; + this.name_iu.x += fx; + this.name_iu.y += fy; + this.name_iu.z += fz; } public function addWorldForceXYZ(px:Number, py:Number, pz:Number, fx:Number, fy:Number, fz:Number) : void { var rx:Number = NaN; - this.§_-iu§.x += fx; - this.§_-iu§.y += fy; - this.§_-iu§.z += fz; + this.name_iu.x += fx; + this.name_iu.y += fy; + this.name_iu.z += fz; var pos:Vector3 = this.state.position; rx = px - pos.x; var ry:Number = py - pos.y; var rz:Number = pz - pos.z; - this.§_-Xr§.x += ry * fz - rz * fy; - this.§_-Xr§.y += rz * fx - rx * fz; - this.§_-Xr§.z += rx * fy - ry * fx; + this.name_Xr.x += ry * fz - rz * fy; + this.name_Xr.y += rz * fx - rx * fz; + this.name_Xr.z += rx * fy - ry * fx; } public function addWorldForce(pos:Vector3, force:Vector3) : void { - this.§_-iu§.add(force); - this.§_-Xr§.add(_r.diff(pos,this.state.position).cross(force)); + this.name_iu.add(force); + this.name_Xr.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.name_iu.add(_f); + this.name_Xr.add(_r.diff(pos,this.state.position).cross(_f)); } public function addLocalForce(pos:Vector3, force:Vector3) : void { this.baseMatrix.transformVector(pos,_r); this.baseMatrix.transformVector(force,_f); - this.§_-iu§.add(_f); - this.§_-Xr§.add(_r.cross(_f)); + this.name_iu.add(_f); + this.name_Xr.add(_r.cross(_f)); } public function addWorldForceAtLocalPoint(localPos:Vector3, worldForce:Vector3) : void { this.baseMatrix.transformVector(localPos,_r); - this.§_-iu§.add(worldForce); - this.§_-Xr§.add(_r.cross(worldForce)); + this.name_iu.add(worldForce); + this.name_Xr.add(_r.cross(worldForce)); } public function addTorque(t:Vector3) : void { - this.§_-Xr§.add(t); + this.name_Xr.add(t); } internal function clearAccumulators() : void { - this.§_-iu§.x = this.§_-iu§.y = this.§_-iu§.z = 0; - this.§_-Xr§.x = this.§_-Xr§.y = this.§_-Xr§.z = 0; + this.name_iu.x = this.name_iu.y = this.name_iu.z = 0; + this.name_Xr.x = this.name_Xr.y = this.name_Xr.z = 0; } internal function calcAccelerations() : void { - this.§_-1G§.x = this.§_-iu§.x * this.invMass; - this.§_-1G§.y = this.§_-iu§.y * this.invMass; - this.§_-1G§.z = this.§_-iu§.z * this.invMass; - this.§_-fR§.x = this.§_-nX§.a * this.§_-Xr§.x + this.§_-nX§.b * this.§_-Xr§.y + this.§_-nX§.c * this.§_-Xr§.z; - this.§_-fR§.y = this.§_-nX§.e * this.§_-Xr§.x + this.§_-nX§.f * this.§_-Xr§.y + this.§_-nX§.g * this.§_-Xr§.z; - this.§_-fR§.z = this.§_-nX§.i * this.§_-Xr§.x + this.§_-nX§.j * this.§_-Xr§.y + this.§_-nX§.k * this.§_-Xr§.z; + this.name_1G.x = this.name_iu.x * this.invMass; + this.name_1G.y = this.name_iu.y * this.invMass; + this.name_1G.z = this.name_iu.z * this.invMass; + this.name_fR.x = this.name_nX.a * this.name_Xr.x + this.name_nX.b * this.name_Xr.y + this.name_nX.c * this.name_Xr.z; + this.name_fR.y = this.name_nX.e * this.name_Xr.x + this.name_nX.f * this.name_Xr.y + this.name_nX.g * this.name_Xr.z; + this.name_fR.z = this.name_nX.i * this.name_Xr.x + this.name_nX.j * this.name_Xr.y + this.name_nX.k * this.name_Xr.z; } public function calcDerivedData() : void @@ -289,7 +289,7 @@ 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.name_nX.copy(this.invInertia).append(this.baseMatrix).prependTransposed(this.baseMatrix); if(this.collisionPrimitives != null) { this.aabb.infinity(); @@ -310,22 +310,22 @@ package alternativa.physics public function saveState() : void { - this.§_-U3§.copy(this.state); + this.name_U3.copy(this.state); } internal function restoreState() : void { - this.state.copy(this.§_-U3§); + this.state.copy(this.name_U3); } internal function integrateVelocity(dt:Number) : void { - this.state.velocity.x += this.§_-1G§.x * dt; - this.state.velocity.y += this.§_-1G§.y * dt; - this.state.velocity.z += this.§_-1G§.z * dt; - this.state.rotation.x += this.§_-fR§.x * dt; - this.state.rotation.y += this.§_-fR§.y * dt; - this.state.rotation.z += this.§_-fR§.z * dt; + this.state.velocity.x += this.name_1G.x * dt; + this.state.velocity.y += this.name_1G.y * dt; + this.state.velocity.z += this.name_1G.z * dt; + this.state.rotation.x += this.name_fR.x * dt; + this.state.rotation.y += this.name_fR.y * dt; + this.state.rotation.z += this.name_fR.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..95d0b61 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_Pe:Number = 0; - public var §_-J1§:Number = 0.3; + public var name_J1:Number = 0.3; public function BodyMaterial() { diff --git a/src/alternativa/physics/Contact.as b/src/alternativa/physics/Contact.as index 83186b6..a653d87 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_Pe:Number; - public var §_-J1§:Number; + public var name_J1:Number; public var normal:Vector3 = new Vector3(); public var points:Vector.; - public var §_-P3§:int; + public var name_P3:int; - public var §_-HA§:Number = 0; + public var name_HA:Number = 0; - public var §_-CV§:Boolean; + public var name_CV:Boolean; public var next:Contact; public var index:int; - private const §_-29§:int = 8; + private const name_29:int = 8; public function Contact(index:int) { - this.points = new Vector.(this.§_-29§,true); + this.points = new Vector.(this.name_29,true); super(); this.index = index; - for(var i:int = 0; i < this.§_-29§; i++) + for(var i:int = 0; i < this.name_29; i++) { this.points[i] = new ContactPoint(); } diff --git a/src/alternativa/physics/ContactPoint.as b/src/alternativa/physics/ContactPoint.as index d888352..7c5862e 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_0C:Number; - public var §_-A-§:Number; + public var name_A:Number; - public var §_-DS§:Number; + public var name_DS: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_Dv:Number; - public var §_-CV§:Boolean; + public var name_CV:Boolean; public function ContactPoint() { diff --git a/src/alternativa/physics/PhysicsScene.as b/src/alternativa/physics/PhysicsScene.as index 4516584..17f3ceb 100644 --- a/src/alternativa/physics/PhysicsScene.as +++ b/src/alternativa/physics/PhysicsScene.as @@ -10,47 +10,47 @@ package alternativa.physics { private static var lastBodyId:int; - public const §_-ga§:int = 1000; + public const name_ga:int = 1000; - public var §_-kv§:int = 10; + public var name_kv:int = 10; - public var §_-YB§:Number = 0.1; + public var name_YB:Number = 0.1; public var dynamic:Number = 0.5; - public var §_-Yi§:int = 5; + public var name_Yi:int = 5; - public var §_-2I§:int = 5; + public var name_2I:int = 5; - public var §_-06§:Boolean = false; + public var name_06:Boolean = false; - public var §_-Y6§:int = 10; + public var name_Y6:int = 10; - public var §_-cc§:Number = 1; + public var name_cc:Number = 1; - public var §_-GG§:Number = 0.01; + public var name_GG:Number = 0.01; - public var §_-MX§:Vector3 = new Vector3(0,0,-9.8); + public var name_MX:Vector3 = new Vector3(0,0,-9.8); - public var §_-fz§:Number = 9.8; + public var name_fz:Number = 9.8; public var collisionDetector:ICollisionDetector; - public var §_-By§:BodyList = new BodyList(); + public var name_By:BodyList = new BodyList(); public var contacts:Contact; - public var §_-7e§:Vector. = new Vector.(); + public var name_7e:Vector. = new Vector.(); - public var §_-0v§:int; + public var name_0v:int; - public var §_-hA§:int; + public var name_hA:int; public var time:int; - private var §_-lh§:Contact; + private var name_lh:Contact; - private var §_-MN§:Vector3 = new Vector3(); + private var name_MN:Vector3 = new Vector3(); private var _v:Vector3 = new Vector3(); @@ -59,7 +59,7 @@ 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.name_ga; i++) { contact.next = new Contact(i); contact = contact.next; @@ -69,25 +69,25 @@ package alternativa.physics public function get gravity() : Vector3 { - return this.§_-MX§.clone(); + return this.name_MX.clone(); } public function set gravity(value:Vector3) : void { - this.§_-MX§.copy(value); - this.§_-fz§ = this.§_-MX§.length(); + this.name_MX.copy(value); + this.name_fz = this.name_MX.length(); } public function addBody(body:Body) : void { body.id = lastBodyId++; body.scene = this; - this.§_-By§.append(body); + this.name_By.append(body); } public function removeBody(body:Body) : void { - if(this.§_-By§.remove(body)) + if(this.name_By.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.name_0v++; + this.name_7e[_loc2_] = c; c.world = this; } public function removeConstraint(c:Constraint) : Boolean { - var idx:int = int(this.§_-7e§.indexOf(c)); + var idx:int = int(this.name_7e.indexOf(c)); if(idx < 0) { return false; } - this.§_-7e§.splice(idx,1); - --this.§_-0v§; + this.name_7e.splice(idx,1); + --this.name_0v; 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_By.head; item != null; ) { body = item.body; body.calcAccelerations(); - if(body.§_-fA§ && body.§_-Sb§ && !body.§_-N0§) + if(body.name_fA && body.name_Sb && !body.name_N0) { - body.§_-1G§.x += this.§_-MX§.x; - body.§_-1G§.y += this.§_-MX§.y; - body.§_-1G§.z += this.§_-MX§.z; + body.name_1G.x += this.name_MX.x; + body.name_1G.y += this.name_MX.y; + body.name_1G.z += this.name_MX.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_By.head; item != null; ) { body = item.body; - if(!body.§_-N0§) + if(!body.name_N0) { body.saveState(); - if(this.§_-06§) + if(this.name_06) { 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.name_lh = this.collisionDetector.getAllContacts(this.contacts); + for(var contact:Contact = this.contacts; contact != this.name_lh; ) { b1 = contact.body1; b2 = contact.body2; - for(j = 0; j < contact.§_-P3§; ) + for(j = 0; j < contact.name_P3; ) { cp = contact.points[j]; bPos = b1.state.position; @@ -176,12 +176,12 @@ package alternativa.physics } contact = contact.next; } - if(this.§_-06§) + if(this.name_06) { - for(item = this.§_-By§.head; item != null; ) + for(item = this.name_By.head; item != null; ) { body = item.body; - if(!body.§_-N0§) + if(!body.name_N0) { 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.name_lh; ) { b1 = contact.body1; b2 = contact.body2; - if(b1.§_-N0§) + if(b1.name_N0) { - b1.§_-N0§ = false; - b1.§_-ia§ = 0; + b1.name_N0 = false; + b1.name_ia = 0; } - if(b2 != null && b2.§_-N0§) + if(b2 != null && b2.name_N0) { - b2.§_-N0§ = false; - b2.§_-ia§ = 0; + b2.name_N0 = false; + b2.name_ia = 0; } - contact.§_-Pe§ = b1.material.§_-Pe§; - if(b2 != null && b2.material.§_-Pe§ < contact.§_-Pe§) + contact.name_Pe = b1.material.name_Pe; + if(b2 != null && b2.material.name_Pe < contact.name_Pe) { - contact.§_-Pe§ = b2.material.§_-Pe§; + contact.name_Pe = b2.material.name_Pe; } - contact.§_-J1§ = b1.material.§_-J1§; - if(b2 != null && b2.material.§_-J1§ < contact.§_-J1§) + contact.name_J1 = b1.material.name_J1; + if(b2 != null && b2.material.name_J1 < contact.name_J1) { - contact.§_-J1§ = b2.material.§_-J1§; + contact.name_J1 = b2.material.name_J1; } - for(j = 0; j < contact.§_-P3§; ) + for(j = 0; j < contact.name_P3; ) { cp = contact.points[j]; - cp.§_-Dv§ = 0; - cp.§_-DS§ = 0; - if(b1.§_-Sb§) + cp.name_Dv = 0; + cp.name_DS = 0; + if(b1.name_Sb) { - cp.angularInertia1 = this._v.cross2(cp.r1,contact.normal).transform3(b1.§_-nX§).cross(cp.r1).dot(contact.normal); - cp.§_-DS§ += b1.invMass + cp.angularInertia1; + cp.angularInertia1 = this._v.cross2(cp.r1,contact.normal).transform3(b1.name_nX).cross(cp.r1).dot(contact.normal); + cp.name_DS += b1.invMass + cp.angularInertia1; } - if(b2 != null && b2.§_-Sb§) + if(b2 != null && b2.name_Sb) { - cp.angularInertia2 = this._v.cross2(cp.r2,contact.normal).transform3(b2.§_-nX§).cross(cp.r2).dot(contact.normal); - cp.§_-DS§ += b2.invMass + cp.angularInertia2; + cp.angularInertia2 = this._v.cross2(cp.r2,contact.normal).transform3(b2.name_nX).cross(cp.r2).dot(contact.normal); + cp.name_DS += b2.invMass + cp.angularInertia2; } this.calcSepVelocity(b1,b2,cp,this._v); - cp.§_-0C§ = this._v.dot(contact.normal); - if(cp.§_-0C§ < 0) + cp.name_0C = this._v.dot(contact.normal); + if(cp.name_0C < 0) { - cp.§_-0C§ = -contact.§_-Pe§ * cp.§_-0C§; + cp.name_0C = -contact.name_Pe * cp.name_0C; } - cp.§_-A-§ = cp.penetration > this.§_-YB§ ? (cp.penetration - this.§_-YB§) / (this.§_-kv§ * dt) : 0; - if(cp.§_-A-§ > this.dynamic) + cp.name_A = cp.penetration > this.name_YB ? (cp.penetration - this.name_YB) / (this.name_kv * dt) : 0; + if(cp.name_A > this.dynamic) { - cp.§_-A-§ = this.dynamic; + cp.name_A = this.dynamic; } j++; } contact = contact.next; } - for(var i:int = 0; i < this.§_-0v§; i++) + for(var i:int = 0; i < this.name_0v; i++) { - constraint = this.§_-7e§[i]; + constraint = this.name_7e[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.name_2I : this.name_Yi; 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.name_lh; ) { this.resolveContact(contact,forceInelastic,forwardLoop); contact = contact.next; } - for(i = 0; i < this.§_-0v§; i++) + for(i = 0; i < this.name_0v; i++) { - constraint = this.§_-7e§[i]; + constraint = this.name_7e[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_P3; this.resolveContactPoint(i,b1,b2,contactInfo,normal,forceInelastic),i++) { } } else { - for(i = contactInfo.§_-P3§ - 1; i >= 0; this.resolveContactPoint(i,b1,b2,contactInfo,normal,forceInelastic),i--) + for(i = contactInfo.name_P3 - 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_CV = 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_A; if(sepVel < minSpeVel) { - cp.§_-CV§ = false; + cp.name_CV = false; } - else if(cp.§_-CV§) + else if(cp.name_CV) { return; } @@ -334,22 +334,22 @@ package alternativa.physics } else { - newVel = cp.§_-0C§; + newVel = cp.name_0C; } var deltaVel:Number = newVel - sepVel; - var impulse:Number = deltaVel / cp.§_-DS§; - var accumImpulse:Number = cp.§_-Dv§ + impulse; + var impulse:Number = deltaVel / cp.name_DS; + var accumImpulse:Number = cp.name_Dv + impulse; if(accumImpulse < 0) { accumImpulse = 0; } - var deltaImpulse:Number = accumImpulse - cp.§_-Dv§; - cp.§_-Dv§ = accumImpulse; - if(b1.§_-Sb§) + var deltaImpulse:Number = accumImpulse - cp.name_Dv; + cp.name_Dv = accumImpulse; + if(b1.name_Sb) { b1.applyRelPosWorldImpulse(cp.r1,normal,deltaImpulse); } - if(b2 != null && b2.§_-Sb§) + if(b2 != null && b2.name_Sb) { 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.name_MN.x = -this._v.x; + this.name_MN.y = -this._v.y; + this.name_MN.z = -this._v.z; + this.name_MN.normalize(); + if(b1.name_Sb) { r = cp.r1; - m = b1.§_-nX§; - this._v.x = r.y * this.§_-MN§.z - r.z * this.§_-MN§.y; - this._v.y = r.z * this.§_-MN§.x - r.x * this.§_-MN§.z; - this._v.z = r.x * this.§_-MN§.y - r.y * this.§_-MN§.x; + m = b1.name_nX; + this._v.x = r.y * this.name_MN.z - r.z * this.name_MN.y; + this._v.y = r.z * this.name_MN.x - r.x * this.name_MN.z; + this._v.z = r.x * this.name_MN.y - r.y * this.name_MN.x; xx = m.a * this._v.x + m.b * this._v.y + m.c * this._v.z; yy = m.e * this._v.x + m.f * this._v.y + m.g * this._v.z; zz = m.i * this._v.x + m.j * this._v.y + m.k * this._v.z; this._v.x = yy * r.z - zz * r.y; this._v.y = zz * r.x - xx * r.z; this._v.z = xx * r.y - yy * r.x; - tanSpeedByUnitImpulse += b1.invMass + this._v.x * this.§_-MN§.x + this._v.y * this.§_-MN§.y + this._v.z * this.§_-MN§.z; + tanSpeedByUnitImpulse += b1.invMass + this._v.x * this.name_MN.x + this._v.y * this.name_MN.y + this._v.z * this.name_MN.z; } - if(b2 != null && b2.§_-Sb§) + if(b2 != null && b2.name_Sb) { r = cp.r2; - m = b2.§_-nX§; - this._v.x = r.y * this.§_-MN§.z - r.z * this.§_-MN§.y; - this._v.y = r.z * this.§_-MN§.x - r.x * this.§_-MN§.z; - this._v.z = r.x * this.§_-MN§.y - r.y * this.§_-MN§.x; + m = b2.name_nX; + this._v.x = r.y * this.name_MN.z - r.z * this.name_MN.y; + this._v.y = r.z * this.name_MN.x - r.x * this.name_MN.z; + this._v.z = r.x * this.name_MN.y - r.y * this.name_MN.x; xx = m.a * this._v.x + m.b * this._v.y + m.c * this._v.z; yy = m.e * this._v.x + m.f * this._v.y + m.g * this._v.z; zz = m.i * this._v.x + m.j * this._v.y + m.k * this._v.z; this._v.x = yy * r.z - zz * r.y; this._v.y = zz * r.x - xx * r.z; this._v.z = xx * r.y - yy * r.x; - tanSpeedByUnitImpulse += b2.invMass + this._v.x * this.§_-MN§.x + this._v.y * this.§_-MN§.y + this._v.z * this.§_-MN§.z; + tanSpeedByUnitImpulse += b2.invMass + this._v.x * this.name_MN.x + this._v.y * this.name_MN.y + this._v.z * this.name_MN.z; } var tanImpulse:Number = tanSpeed / tanSpeedByUnitImpulse; - var max:Number = contact.§_-J1§ * cp.§_-Dv§; + var max:Number = contact.name_J1 * cp.name_Dv; if(max < 0) { if(tanImpulse < max) @@ -411,13 +411,13 @@ package alternativa.physics { tanImpulse = max; } - if(b1.§_-Sb§) + if(b1.name_Sb) { - b1.applyRelPosWorldImpulse(cp.r1,this.§_-MN§,tanImpulse); + b1.applyRelPosWorldImpulse(cp.r1,this.name_MN,tanImpulse); } - if(b2 != null && b2.§_-Sb§) + if(b2 != null && b2.name_Sb) { - b2.applyRelPosWorldImpulse(cp.r2,this.§_-MN§,-tanImpulse); + b2.applyRelPosWorldImpulse(cp.r2,this.name_MN,-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_By.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_By.head; item != null; ) { body = item.body; - if(body.§_-Sb§ && !body.§_-N0§) + if(body.name_Sb && !body.name_N0) { 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_By.head; item != null; ) { body = item.body; body.clearAccumulators(); body.calcDerivedData(); - if(body.§_-N4§) + if(body.name_N4) { - if(body.state.velocity.length() < this.§_-cc§ && body.state.rotation.length() < this.§_-GG§) + if(body.state.velocity.length() < this.name_cc && body.state.rotation.length() < this.name_GG) { - if(!body.§_-N0§) + if(!body.name_N0) { - ++body.§_-ia§; - if(body.§_-ia§ >= this.§_-Y6§) + ++body.name_ia; + if(body.name_ia >= this.name_Y6) { - body.§_-N0§ = true; + body.name_N0 = true; } } } else { - body.§_-ia§ = 0; - body.§_-N0§ = false; + body.name_ia = 0; + body.name_N0 = false; } } item = item.next; @@ -502,7 +502,7 @@ package alternativa.physics public function update(delta:int) : void { - ++this.§_-hA§; + ++this.name_hA; 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..7750762 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 name_Xt:Vector.; public var boundBox:BoundBox; public var parent:CollisionKdNode; - public var §_-da§:CollisionKdTree2D; + public var name_da:CollisionKdTree2D; public var axis:int = -1; public var coord:Number; - public var §_-75§:CollisionKdNode; + public var name_75:CollisionKdNode; - public var §_-Gm§:CollisionKdNode; + public var name_Gm:CollisionKdNode; public function CollisionKdNode() { diff --git a/src/alternativa/physics/collision/CollisionKdTree.as b/src/alternativa/physics/collision/CollisionKdTree.as index f08bea8..4baccdf 100644 --- a/src/alternativa/physics/collision/CollisionKdTree.as +++ b/src/alternativa/physics/collision/CollisionKdTree.as @@ -18,21 +18,21 @@ package alternativa.physics.collision public var threshold:Number = 0.1; - public var §_-eV§:int = 1; + public var name_eV:int = 1; - public var §_-5H§:CollisionKdNode; + public var name_5H:CollisionKdNode; - public var §_-8A§:Vector.; + public var name_8A:Vector.; - public var §_-TO§:int; + public var name_TO:int; public var staticBoundBoxes:Vector. = new Vector.(); - private var §_-94§:int; + private var name_94:int; - private var §_-P5§:Number; + private var name_P5:Number; - private var §_-ou§:Number; + private var name_ou:Number; public function CollisionKdTree() { @@ -43,20 +43,20 @@ package alternativa.physics.collision { var child:CollisionPrimitive = null; var childBoundBox:BoundBox = null; - this.§_-8A§ = collisionPrimitives.concat(); - this.§_-TO§ = this.§_-8A§.length; - this.§_-5H§ = new CollisionKdNode(); - this.§_-5H§.indices = new Vector.(); - var rootNodeBoundBox:BoundBox = this.§_-5H§.boundBox = boundBox != null ? boundBox : new BoundBox(); - for(var i:int = 0; i < this.§_-TO§; i++) + this.name_8A = collisionPrimitives.concat(); + this.name_TO = this.name_8A.length; + this.name_5H = new CollisionKdNode(); + this.name_5H.indices = new Vector.(); + var rootNodeBoundBox:BoundBox = this.name_5H.boundBox = boundBox != null ? boundBox : new BoundBox(); + for(var i:int = 0; i < this.name_TO; i++) { - child = this.§_-8A§[i]; + child = this.name_8A[i]; childBoundBox = this.staticBoundBoxes[i] = child.calculateAABB(); rootNodeBoundBox.addBoundBox(childBoundBox); - this.§_-5H§.indices[i] = i; + this.name_5H.indices[i] = i; } - this.staticBoundBoxes.length = this.§_-TO§; - this.splitNode(this.§_-5H§); + this.staticBoundBoxes.length = this.name_TO; + this.splitNode(this.name_5H); splitCoordsX.length = splitCoordsY.length = splitCoordsZ.length = 0; } @@ -70,7 +70,7 @@ package alternativa.physics.collision var max:Number = NaN; var indices:Vector. = node.indices; var numPrimitives:int = int(indices.length); - if(numPrimitives <= this.§_-eV§) + if(numPrimitives <= this.name_eV) { return; } @@ -183,8 +183,8 @@ package alternativa.physics.collision } i++; } - this.§_-94§ = -1; - this.§_-ou§ = 1e+308; + this.name_94 = -1; + this.name_ou = 1e+308; _nodeBB[0] = nodeBoundBox.minX; _nodeBB[1] = nodeBoundBox.minY; _nodeBB[2] = nodeBoundBox.minZ; @@ -194,34 +194,34 @@ package alternativa.physics.collision this.checkNodeAxis(node,0,numSplitCoordsX,splitCoordsX,_nodeBB); this.checkNodeAxis(node,1,numSplitCoordsY,splitCoordsY,_nodeBB); this.checkNodeAxis(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB); - if(this.§_-94§ < 0) + if(this.name_94 < 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 CollisionKdNode(); - node.§_-Gm§.parent = node; - node.§_-Gm§.boundBox = nodeBoundBox.clone(); - node.§_-75§ = new CollisionKdNode(); - node.§_-75§.parent = node; - node.§_-75§.boundBox = nodeBoundBox.clone(); + var axisX:Boolean = this.name_94 == 0; + var axisY:Boolean = this.name_94 == 1; + node.axis = this.name_94; + node.coord = this.name_P5; + node.name_Gm = new CollisionKdNode(); + node.name_Gm.parent = node; + node.name_Gm.boundBox = nodeBoundBox.clone(); + node.name_75 = new CollisionKdNode(); + node.name_75.parent = node; + node.name_75.boundBox = nodeBoundBox.clone(); if(axisX) { - node.§_-Gm§.boundBox.maxX = node.§_-75§.boundBox.minX = this.§_-P5§; + node.name_Gm.boundBox.maxX = node.name_75.boundBox.minX = this.name_P5; } else if(axisY) { - node.§_-Gm§.boundBox.maxY = node.§_-75§.boundBox.minY = this.§_-P5§; + node.name_Gm.boundBox.maxY = node.name_75.boundBox.minY = this.name_P5; } else { - node.§_-Gm§.boundBox.maxZ = node.§_-75§.boundBox.minZ = this.§_-P5§; + node.name_Gm.boundBox.maxZ = node.name_75.boundBox.minZ = this.name_P5; } - var coordMin:Number = this.§_-P5§ - this.threshold; - var coordMax:Number = this.§_-P5§ + this.threshold; + var coordMin:Number = this.name_P5 - this.threshold; + var coordMax:Number = this.name_P5 + this.threshold; for(i = 0; i < numPrimitives; ) { boundBox = this.staticBoundBoxes[indices[i]]; @@ -231,30 +231,30 @@ package alternativa.physics.collision { if(min < coordMin) { - if(node.§_-Gm§.indices == null) + if(node.name_Gm.indices == null) { - node.§_-Gm§.indices = new Vector.(); + node.name_Gm.indices = new Vector.(); } - node.§_-Gm§.indices.push(indices[i]); + node.name_Gm.indices.push(indices[i]); indices[i] = -1; } else { - if(node.§_-Xt§ == null) + if(node.name_Xt == null) { - node.§_-Xt§ = new Vector.(); + node.name_Xt = new Vector.(); } - node.§_-Xt§.push(indices[i]); + node.name_Xt.push(indices[i]); indices[i] = -1; } } else if(min >= coordMin) { - if(node.§_-75§.indices == null) + if(node.name_75.indices == null) { - node.§_-75§.indices = new Vector.(); + node.name_75.indices = new Vector.(); } - node.§_-75§.indices.push(indices[i]); + node.name_75.indices.push(indices[i]); indices[i] = -1; } i++; @@ -276,18 +276,18 @@ package alternativa.physics.collision { node.indices = null; } - if(node.§_-Xt§ != null) + if(node.name_Xt != null) { - node.§_-da§ = new CollisionKdTree2D(this,node); - node.§_-da§.createTree(); + node.name_da = new CollisionKdTree2D(this,node); + node.name_da.createTree(); } - if(node.§_-Gm§.indices != null) + if(node.name_Gm.indices != null) { - this.splitNode(node.§_-Gm§); + this.splitNode(node.name_Gm); } - if(node.§_-75§.indices != null) + if(node.name_75.indices != null) { - this.splitNode(node.§_-75§); + this.splitNode(node.name_75); } } @@ -351,11 +351,11 @@ package alternativa.physics.collision cost = areaNegative * numNegative + areaPositive * numPositive; if(!conflict) { - if(cost < this.§_-ou§ && numNegative > 0 && numPositive > 0) + if(cost < this.name_ou && numNegative > 0 && numPositive > 0) { - this.§_-94§ = axis; - this.§_-ou§ = cost; - this.§_-P5§ = currSplitCoord; + this.name_94 = axis; + this.name_ou = cost; + this.name_P5 = currSplitCoord; } } for(j = i + 1; j < numSplitCoords; ) @@ -372,7 +372,7 @@ package alternativa.physics.collision public function traceTree() : void { - this.traceNode("",this.§_-5H§); + this.traceNode("",this.name_5H); } private function traceNode(str:String, node:CollisionKdNode) : void @@ -381,9 +381,9 @@ package alternativa.physics.collision { 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.traceNode(str + "-",node.§_-Gm§); - this.traceNode(str + "+",node.§_-75§); + trace(str,node.axis == -1 ? "end" : (node.axis == 0 ? "X" : (node.axis == 1 ? "Y" : "Z")),"splitCoord=" + this.name_P5,"bound",node.boundBox,"objs:",node.indices); + this.traceNode(str + "-",node.name_Gm); + this.traceNode(str + "+",node.name_75); } } } diff --git a/src/alternativa/physics/collision/CollisionKdTree2D.as b/src/alternativa/physics/collision/CollisionKdTree2D.as index 6f36561..9c3be02 100644 --- a/src/alternativa/physics/collision/CollisionKdTree2D.as +++ b/src/alternativa/physics/collision/CollisionKdTree2D.as @@ -18,19 +18,19 @@ package alternativa.physics.collision public var threshold:Number = 0.1; - public var §_-eV§:int = 1; + public var name_eV:int = 1; public var parentTree:CollisionKdTree; public var parentNode:CollisionKdNode; - public var §_-5H§:CollisionKdNode; + public var name_5H:CollisionKdNode; - private var §_-94§:int; + private var name_94:int; - private var §_-ou§:Number; + private var name_ou:Number; - private var §_-P5§:Number; + private var name_P5:Number; public function CollisionKdTree2D(parentTree:CollisionKdTree, parentNode:CollisionKdNode) { @@ -41,14 +41,14 @@ package alternativa.physics.collision public function createTree() : void { - this.§_-5H§ = new CollisionKdNode(); - 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_5H = new CollisionKdNode(); + this.name_5H.boundBox = this.parentNode.boundBox.clone(); + this.name_5H.indices = new Vector.(); + var numObjects:int = int(this.parentNode.name_Xt.length); + for(var i:int = 0; i < numObjects; this.name_5H.indices[i] = this.parentNode.name_Xt[i],i++) { } - this.splitNode(this.§_-5H§); + this.splitNode(this.name_5H); splitCoordsX.length = splitCoordsY.length = splitCoordsZ.length = 0; } @@ -64,7 +64,7 @@ package alternativa.physics.collision var bb:BoundBox = null; var min:Number = NaN; var max:Number = NaN; - if(node.indices.length <= this.§_-eV§) + if(node.indices.length <= this.name_eV) { return; } @@ -123,8 +123,8 @@ package alternativa.physics.collision } i++; } - this.§_-94§ = -1; - this.§_-ou§ = 1e+308; + this.name_94 = -1; + this.name_ou = 1e+308; _nodeBB[0] = nodeBoundBox.minX; _nodeBB[1] = nodeBoundBox.minY; _nodeBB[2] = nodeBoundBox.minZ; @@ -143,34 +143,34 @@ package alternativa.physics.collision { this.checkNodeAxis(node,2,numSplitCoordsZ,splitCoordsZ,_nodeBB); } - if(this.§_-94§ < 0) + if(this.name_94 < 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 CollisionKdNode(); - node.§_-Gm§.parent = node; - node.§_-Gm§.boundBox = nodeBoundBox.clone(); - node.§_-75§ = new CollisionKdNode(); - node.§_-75§.parent = node; - node.§_-75§.boundBox = nodeBoundBox.clone(); + var axisX:Boolean = this.name_94 == 0; + var axisY:Boolean = this.name_94 == 1; + node.axis = this.name_94; + node.coord = this.name_P5; + node.name_Gm = new CollisionKdNode(); + node.name_Gm.parent = node; + node.name_Gm.boundBox = nodeBoundBox.clone(); + node.name_75 = new CollisionKdNode(); + node.name_75.parent = node; + node.name_75.boundBox = nodeBoundBox.clone(); if(axisX) { - node.§_-Gm§.boundBox.maxX = node.§_-75§.boundBox.minX = this.§_-P5§; + node.name_Gm.boundBox.maxX = node.name_75.boundBox.minX = this.name_P5; } else if(axisY) { - node.§_-Gm§.boundBox.maxY = node.§_-75§.boundBox.minY = this.§_-P5§; + node.name_Gm.boundBox.maxY = node.name_75.boundBox.minY = this.name_P5; } else { - node.§_-Gm§.boundBox.maxZ = node.§_-75§.boundBox.minZ = this.§_-P5§; + node.name_Gm.boundBox.maxZ = node.name_75.boundBox.minZ = this.name_P5; } - var coordMin:Number = this.§_-P5§ - this.threshold; - var coordMax:Number = this.§_-P5§ + this.threshold; + var coordMin:Number = this.name_P5 - this.threshold; + var coordMax:Number = this.name_P5 + this.threshold; for(i = 0; i < numObjects; ) { bb = staticBoundBoxes[objects[i]]; @@ -180,11 +180,11 @@ package alternativa.physics.collision { if(min < coordMin) { - if(node.§_-Gm§.indices == null) + if(node.name_Gm.indices == null) { - node.§_-Gm§.indices = new Vector.(); + node.name_Gm.indices = new Vector.(); } - node.§_-Gm§.indices.push(objects[i]); + node.name_Gm.indices.push(objects[i]); objects[i] = -1; } } @@ -192,11 +192,11 @@ package alternativa.physics.collision { if(max > coordMax) { - if(node.§_-75§.indices == null) + if(node.name_75.indices == null) { - node.§_-75§.indices = new Vector.(); + node.name_75.indices = new Vector.(); } - node.§_-75§.indices.push(objects[i]); + node.name_75.indices.push(objects[i]); objects[i] = -1; } } @@ -219,13 +219,13 @@ package alternativa.physics.collision { node.indices = null; } - if(node.§_-Gm§.indices != null) + if(node.name_Gm.indices != null) { - this.splitNode(node.§_-Gm§); + this.splitNode(node.name_Gm); } - if(node.§_-75§.indices != null) + if(node.name_75.indices != null) { - this.splitNode(node.§_-75§); + this.splitNode(node.name_75); } } @@ -288,11 +288,11 @@ package alternativa.physics.collision j++; } cost = areaNegative * numNegative + areaPositive * numPositive; - if(!conflict && cost < this.§_-ou§ && numNegative > 0 && numPositive > 0) + if(!conflict && cost < this.name_ou && numNegative > 0 && numPositive > 0) { - this.§_-94§ = axis; - this.§_-ou§ = cost; - this.§_-P5§ = currSplitCoord; + this.name_94 = axis; + this.name_ou = cost; + this.name_P5 = currSplitCoord; } for(j = i + 1; j < numSplitCoords; ) { diff --git a/src/alternativa/physics/collision/KdTreeCollisionDetector.as b/src/alternativa/physics/collision/KdTreeCollisionDetector.as index f41220c..e8857b4 100644 --- a/src/alternativa/physics/collision/KdTreeCollisionDetector.as +++ b/src/alternativa/physics/collision/KdTreeCollisionDetector.as @@ -15,29 +15,29 @@ package alternativa.physics.collision { private static var _rayAABB:BoundBox = new BoundBox(); - public var §_-bw§:CollisionKdTree; + public var name_bw:CollisionKdTree; - public var §_-Fz§:Vector.; + public var name_Fz:Vector.; - public var §_-iH§:int; + public var name_iH:int; public var threshold:Number = 0.0001; - private var §_-P6§:Object = {}; + private var name_P6:Object = {}; - private var §_-qC§:MinMax = new MinMax(); + private var name_qC:MinMax = new MinMax(); - private var §_-k8§:Vector3 = new Vector3(); + private var name_k8:Vector3 = new Vector3(); - private var §_-0q§:Vector3 = new Vector3(); + private var name_0q:Vector3 = new Vector3(); - private var §_-2P§:RayHit = new RayHit(); + private var name_2P:RayHit = new RayHit(); public function KdTreeCollisionDetector() { super(); - this.§_-bw§ = new CollisionKdTree(); - this.§_-Fz§ = new Vector.(); + this.name_bw = new CollisionKdTree(); + this.name_Fz = new Vector.(); this.addCollider(CollisionPrimitive.BOX,CollisionPrimitive.BOX,new BoxBoxCollider()); this.addCollider(CollisionPrimitive.BOX,CollisionPrimitive.SPHERE,new BoxSphereCollider()); this.addCollider(CollisionPrimitive.BOX,CollisionPrimitive.RECT,new BoxRectCollider()); @@ -57,7 +57,7 @@ package alternativa.physics.collision public function init(collisionPrimitives:Vector.) : void { - this.§_-bw§.createTree(collisionPrimitives); + this.name_bw.createTree(collisionPrimitives); } public function getAllContacts(contacts:Contact) : Contact @@ -79,14 +79,14 @@ package alternativa.physics.collision { return false; } - var collider:ICollider = this.§_-P6§[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as ICollider; + var collider:ICollider = this.name_P6[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as ICollider; if(collider != null && Boolean(collider.getContact(prim1,prim2,contact))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.acceptPrimitivesCollision(prim1,prim2)) { return false; } - if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)) + if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.acceptPrimitivesCollision(prim2,prim1)) { return false; } @@ -109,14 +109,14 @@ package alternativa.physics.collision { return false; } - var collider:ICollider = this.§_-P6§[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as ICollider; + var collider:ICollider = this.name_P6[prim1.type <= prim2.type ? prim1.type << 16 | prim2.type : prim2.type << 16 | prim1.type] as ICollider; if(collider != null && Boolean(collider.haveCollision(prim1,prim2))) { - if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.§_-eZ§(prim1,prim2)) + if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.acceptPrimitivesCollision(prim1,prim2)) { return false; } - if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)) + if(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.acceptPrimitivesCollision(prim2,prim1)) { return false; } @@ -128,16 +128,16 @@ package alternativa.physics.collision public function raycast(origin:Vector3, dir:Vector3, collisionGroup:int, maxTime:Number, predicate:IRaycastFilter, result:RayHit) : Boolean { var hasStaticIntersection:Boolean = this.raycastStatic(origin,dir,collisionGroup,maxTime,predicate,result); - var hasDynamicIntersection:Boolean = this.intersectRayWithDynamic(origin,dir,collisionGroup,maxTime,predicate,this.§_-2P§); + var hasDynamicIntersection:Boolean = this.intersectRayWithDynamic(origin,dir,collisionGroup,maxTime,predicate,this.name_2P); if(!(hasDynamicIntersection || hasStaticIntersection)) { return false; } if(hasDynamicIntersection && hasStaticIntersection) { - if(result.t > this.§_-2P§.t) + if(result.t > this.name_2P.t) { - result.copy(this.§_-2P§); + result.copy(this.name_2P); } return true; } @@ -145,38 +145,38 @@ package alternativa.physics.collision { return true; } - result.copy(this.§_-2P§); + result.copy(this.name_2P); return true; } public function raycastStatic(origin:Vector3, dir:Vector3, collisionGroup:int, maxTime:Number, predicate:IRaycastFilter, result:RayHit) : Boolean { - if(!this.getRayBoundBoxIntersection(origin,dir,this.§_-bw§.§_-5H§.boundBox,this.§_-qC§)) + if(!this.getRayBoundBoxIntersection(origin,dir,this.name_bw.name_5H.boundBox,this.name_qC)) { return false; } - if(this.§_-qC§.max < 0 || this.§_-qC§.min > maxTime) + if(this.name_qC.max < 0 || this.name_qC.min > maxTime) { return false; } - if(this.§_-qC§.min <= 0) + if(this.name_qC.min <= 0) { - this.§_-qC§.min = 0; - this.§_-0q§.x = origin.x; - this.§_-0q§.y = origin.y; - this.§_-0q§.z = origin.z; + this.name_qC.min = 0; + this.name_0q.x = origin.x; + this.name_0q.y = origin.y; + this.name_0q.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.name_0q.x = origin.x + this.name_qC.min * dir.x; + this.name_0q.y = origin.y + this.name_qC.min * dir.y; + this.name_0q.z = origin.z + this.name_qC.min * dir.z; } - if(this.§_-qC§.max > maxTime) + if(this.name_qC.max > maxTime) { - this.§_-qC§.max = maxTime; + this.name_qC.max = maxTime; } - var hasIntersection:Boolean = this.testRayAgainstNode(this.§_-bw§.§_-5H§,origin,this.§_-0q§,dir,collisionGroup,this.§_-qC§.min,this.§_-qC§.max,predicate,result); + var hasIntersection:Boolean = this.testRayAgainstNode(this.name_bw.name_5H,origin,this.name_0q,dir,collisionGroup,this.name_qC.min,this.name_qC.max,predicate,result); return hasIntersection ? result.t <= maxTime : false; } @@ -187,7 +187,7 @@ package alternativa.physics.collision private function addCollider(type1:int, type2:int, collider:ICollider) : void { - this.§_-P6§[type1 <= type2 ? type1 << 16 | type2 : type2 << 16 | type1] = collider; + this.name_P6[type1 <= type2 ? type1 << 16 | type2 : type2 << 16 | type1] = collider; } private function getPrimitiveNodeCollisions(node:CollisionKdNode, primitive:CollisionPrimitive, contacts:Contact) : Contact @@ -236,24 +236,24 @@ package alternativa.physics.collision _rayAABB.maxZ = zz; } minTime = maxTime + 1; - for(var i:int = 0; i < this.§_-iH§; ) + for(var i:int = 0; i < this.name_iH; ) { - primitive = this.§_-Fz§[i]; + primitive = this.name_Fz[i]; if((primitive.collisionGroup & collisionGroup) != 0) { paabb = primitive.aabb; if(!(_rayAABB.maxX < paabb.minX || _rayAABB.minX > paabb.maxX || _rayAABB.maxY < paabb.minY || _rayAABB.minY > paabb.maxY || _rayAABB.maxZ < paabb.minZ || _rayAABB.minZ > paabb.maxZ)) { - if(!(filter != null && !filter.§_-0w§(primitive))) + if(!(filter != null && !filter.acceptRayHit(primitive))) { - t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); + t = Number(primitive.raycast(origin,dir,this.threshold,this.name_k8)); 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.name_k8.x; + result.normal.y = this.name_k8.y; + result.normal.z = this.name_k8.z; } } } @@ -353,7 +353,7 @@ package alternativa.physics.collision var splitTime:Number = NaN; var currChildNode:CollisionKdNode = null; var intersects:Boolean = false; - if(node.indices != null && this.getRayNodeIntersection(origin,dir,collisionGroup,this.§_-bw§.§_-8A§,node.indices,predicate,result)) + if(node.indices != null && this.getRayNodeIntersection(origin,dir,collisionGroup,this.name_bw.name_8A,node.indices,predicate,result)) { return true; } @@ -372,7 +372,7 @@ package alternativa.physics.collision { splitTime = (node.coord - origin.x) / dir.x; } - currChildNode = localOrigin.x < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.x < node.coord ? node.name_Gm : node.name_75; break; case 1: if(dir.y > -this.threshold && dir.y < this.threshold) @@ -383,7 +383,7 @@ package alternativa.physics.collision { splitTime = (node.coord - origin.y) / dir.y; } - currChildNode = localOrigin.y < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.y < node.coord ? node.name_Gm : node.name_75; break; case 2: if(dir.z > -this.threshold && dir.z < this.threshold) @@ -394,7 +394,7 @@ package alternativa.physics.collision { splitTime = (node.coord - origin.z) / dir.z; } - currChildNode = localOrigin.z < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.z < node.coord ? node.name_Gm : node.name_75; } if(splitTime < t1 || splitTime > t2) { @@ -405,10 +405,10 @@ package alternativa.physics.collision { 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.testRayAgainstNode(currChildNode == node.§_-Gm§ ? node.§_-75§ : node.§_-Gm§,origin,this.§_-0q§,dir,collisionGroup,splitTime,t2,predicate,result); + this.name_0q.x = origin.x + splitTime * dir.x; + this.name_0q.y = origin.y + splitTime * dir.y; + this.name_0q.z = origin.z + splitTime * dir.z; + return this.testRayAgainstNode(currChildNode == node.name_Gm ? node.name_75 : node.name_Gm,origin,this.name_0q,dir,collisionGroup,splitTime,t2,predicate,result); } private function getRayNodeIntersection(origin:Vector3, dir:Vector3, collisionGroup:int, primitives:Vector., indices:Vector., filter:IRaycastFilter, intersection:RayHit) : Boolean @@ -422,16 +422,16 @@ package alternativa.physics.collision primitive = primitives[indices[i]]; if((primitive.collisionGroup & collisionGroup) != 0) { - if(!(filter != null && !filter.§_-0w§(primitive))) + if(!(filter != null && !filter.acceptRayHit(primitive))) { - t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); + t = Number(primitive.raycast(origin,dir,this.threshold,this.name_k8)); 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.name_k8.x; + intersection.normal.y = this.name_k8.y; + intersection.normal.z = this.name_k8.z; } } } diff --git a/src/alternativa/physics/collision/colliders/BoxBoxCollider.as b/src/alternativa/physics/collision/colliders/BoxBoxCollider.as index 193b1b1..0469939 100644 --- a/src/alternativa/physics/collision/colliders/BoxBoxCollider.as +++ b/src/alternativa/physics/collision/colliders/BoxBoxCollider.as @@ -27,24 +27,24 @@ package alternativa.physics.collision.colliders private var axis22:Vector3 = new Vector3(); - private var §_-Wt§:int; + private var name_Wt:int; - private var §_-hK§:Number; + private var name_hK:Number; private var points1:Vector. = new Vector.(8,true); private var points2:Vector. = new Vector.(8,true); - private var §_-2r§:Vector. = new Vector.(8,true); + private var name_2r:Vector. = new Vector.(8,true); - private var §_-P3§:int; + private var name_P3:int; public function BoxBoxCollider() { super(); for(var i:int = 0; i < 8; i++) { - this.§_-2r§[i] = new ContactPoint(); + this.name_2r[i] = new ContactPoint(); this.points1[i] = new Vector3(); this.points2[i] = new Vector3(); } @@ -68,17 +68,17 @@ package alternativa.physics.collision.colliders box1 = prim2 as CollisionBox; box2 = prim1 as CollisionBox; } - if(this.§_-Wt§ < 6) + if(this.name_Wt < 6) { - if(!this.findFaceContactPoints(box1,box2,this.vectorToBox1,this.§_-Wt§,contact)) + if(!this.findFaceContactPoints(box1,box2,this.vectorToBox1,this.name_Wt,contact)) { return false; } } else { - this.§_-Wt§ -= 6; - this.findEdgesIntersection(box1,box2,this.vectorToBox1,int(this.§_-Wt§ / 3),this.§_-Wt§ % 3,contact); + this.name_Wt -= 6; + this.findEdgesIntersection(box1,box2,this.vectorToBox1,int(this.name_Wt / 3),this.name_Wt % 3,contact); } contact.body1 = box1.body; contact.body2 = box2.body; @@ -91,7 +91,7 @@ package alternativa.physics.collision.colliders var box2:CollisionBox = null; var transform1:Matrix4 = null; var transform2:Matrix4 = null; - this.§_-hK§ = 10000000000; + this.name_hK = 10000000000; if(prim1.body != null) { box1 = prim1 as CollisionBox; @@ -244,14 +244,14 @@ package alternativa.physics.collision.colliders transform2.transformPointsN(this.points1,this.points2,4); transform1.transformPointsTransposedN(this.points2,this.points1,4); var pnum:int = this.clip(box1.hs,faceAxisIdx); - this.§_-P3§ = 0; + this.name_P3 = 0; for(var i:int = 0; i < pnum; ) { v = this.points1[i]; pen = this.getPointBoxPenetration(box1.hs,v,faceAxisIdx,negativeFace); if(pen > -this.epsilon) { - cp = this.§_-2r§[this.§_-P3§++]; + cp = this.name_2r[this.name_P3++]; cpPos = cp.pos; cpPos.x = transform1.a * v.x + transform1.b * v.y + transform1.c * v.z + transform1.d; cpPos.y = transform1.e * v.x + transform1.f * v.y + transform1.g * v.z + transform1.h; @@ -274,17 +274,17 @@ package alternativa.physics.collision.colliders colAxis.y = -colAxis.y; colAxis.z = -colAxis.z; } - if(this.§_-P3§ > 4) + if(this.name_P3 > 4) { this.reducePoints(); } - for(i = 0; i < this.§_-P3§; ) + for(i = 0; i < this.name_P3; ) { cp = contact.points[i]; - cp.copyFrom(this.§_-2r§[i]); + cp.copyFrom(this.name_2r[i]); i++; } - contact.§_-P3§ = this.§_-P3§; + contact.name_P3 = this.name_P3; return true; } @@ -302,13 +302,13 @@ package alternativa.physics.collision.colliders var dy:Number = NaN; var dz:Number = NaN; var len:Number = NaN; - while(this.§_-P3§ > 4) + while(this.name_P3 > 4) { minLen = 10000000000; - p1 = (this.§_-2r§[int(this.§_-P3§ - 1)] as ContactPoint).pos; - for(i = 0; i < this.§_-P3§; i++) + p1 = (this.name_2r[int(this.name_P3 - 1)] as ContactPoint).pos; + for(i = 0; i < this.name_P3; i++) { - p2 = (this.§_-2r§[i] as ContactPoint).pos; + p2 = (this.name_2r[i] as ContactPoint).pos; dx = p2.x - p1.x; dy = p2.y - p1.y; dz = p2.z - p1.z; @@ -320,9 +320,9 @@ package alternativa.physics.collision.colliders } p1 = p2; } - ii = minIdx == 0 ? this.§_-P3§ - 1 : minIdx - 1; - cp1 = this.§_-2r§[ii]; - cp2 = this.§_-2r§[minIdx]; + ii = minIdx == 0 ? this.name_P3 - 1 : minIdx - 1; + cp1 = this.name_2r[ii]; + cp2 = this.name_2r[minIdx]; p1 = cp1.pos; p2 = cp2.pos; p2.x = 0.5 * (p1.x + p2.x); @@ -331,13 +331,13 @@ package alternativa.physics.collision.colliders cp2.penetration = 0.5 * (cp1.penetration + cp2.penetration); if(minIdx > 0) { - for(i = minIdx; i < this.§_-P3§; i++) + for(i = minIdx; i < this.name_P3; i++) { - this.§_-2r§[int(i - 1)] = this.§_-2r§[i]; + this.name_2r[int(i - 1)] = this.name_2r[i]; } - this.§_-2r§[int(this.§_-P3§ - 1)] = cp1; + this.name_2r[int(this.name_P3 - 1)] = cp1; } - --this.§_-P3§; + --this.name_P3; } } @@ -535,7 +535,7 @@ package alternativa.physics.collision.colliders 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; + contact.name_P3 = 1; var cp:ContactPoint = contact.points[0]; var cpPos:Vector3 = cp.pos; cp.pos.x = 0.5 * (x1 + this.axis10.x * t1 + x2 + this.axis20.x * t2); @@ -549,7 +549,7 @@ package alternativa.physics.collision.colliders 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.name_hK; } private function testMainAxis(box1:CollisionBox, box2:CollisionBox, axis:Vector3, axisIndex:int, toBox1:Vector3) : Boolean @@ -559,10 +559,10 @@ package alternativa.physics.collision.colliders { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.name_hK) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.name_hK = overlap; + this.name_Wt = axisIndex; } return true; } @@ -586,10 +586,10 @@ package alternativa.physics.collision.colliders { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.name_hK) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.name_hK = overlap; + this.name_Wt = axisIndex; } return true; } diff --git a/src/alternativa/physics/collision/colliders/BoxRectCollider.as b/src/alternativa/physics/collision/colliders/BoxRectCollider.as index 0eefe3b..239f77d 100644 --- a/src/alternativa/physics/collision/colliders/BoxRectCollider.as +++ b/src/alternativa/physics/collision/colliders/BoxRectCollider.as @@ -28,9 +28,9 @@ package alternativa.physics.collision.colliders private var axis22:Vector3 = new Vector3(); - private var §_-Wt§:int; + private var name_Wt:int; - private var §_-hK§:Number; + private var name_hK:Number; private var points1:Vector. = new Vector.(8,true); @@ -63,17 +63,17 @@ package alternativa.physics.collision.colliders { rect = prim2 as CollisionRect; } - if(this.§_-Wt§ < 4) + if(this.name_Wt < 4) { - if(!this.findFaceContactPoints(box,rect,this.vectorToBox,this.§_-Wt§,contact)) + if(!this.findFaceContactPoints(box,rect,this.vectorToBox,this.name_Wt,contact)) { return false; } } else { - this.§_-Wt§ -= 4; - if(!this.findEdgesIntersection(box,rect,this.vectorToBox,int(this.§_-Wt§ / 2),this.§_-Wt§ % 2,contact)) + this.name_Wt -= 4; + if(!this.findEdgesIntersection(box,rect,this.vectorToBox,int(this.name_Wt / 2),this.name_Wt % 2,contact)) { return false; } @@ -94,7 +94,7 @@ package alternativa.physics.collision.colliders var box:CollisionBox = null; var rect:CollisionRect = null; var rectTransform:Matrix4 = null; - this.§_-hK§ = 10000000000; + this.name_hK = 10000000000; box = prim1 as CollisionBox; if(box == null) { @@ -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_P3 = 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_P3++]; 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_P3 = 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_P3++]; cp.penetration = _loc21_; cpPos = cp.pos; cpPos.x = boxTransform.a * v.x + boxTransform.b * v.y + boxTransform.c * v.z + boxTransform.d; @@ -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_P3 = 1; var cp:ContactPoint = contact.points[0]; - cp.penetration = this.§_-hK§; + cp.penetration = this.name_hK; var cpPos:Vector3 = cp.pos; cpPos.x = 0.5 * (x1 + this.axis10.x * t1 + x2 + this.axis20.x * t2); cpPos.y = 0.5 * (y1 + this.axis10.y * t1 + y2 + this.axis20.y * t2); @@ -508,10 +508,10 @@ package alternativa.physics.collision.colliders { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.name_hK) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.name_hK = overlap; + this.name_Wt = axisIndex; } return true; } @@ -535,10 +535,10 @@ package alternativa.physics.collision.colliders { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.name_hK) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.name_hK = overlap; + this.name_Wt = axisIndex; } return true; } diff --git a/src/alternativa/physics/collision/colliders/BoxSphereCollider.as b/src/alternativa/physics/collision/colliders/BoxSphereCollider.as index e8f010d..3653499 100644 --- a/src/alternativa/physics/collision/colliders/BoxSphereCollider.as +++ b/src/alternativa/physics/collision/colliders/BoxSphereCollider.as @@ -12,11 +12,11 @@ package alternativa.physics.collision.colliders { private var center:Vector3 = new Vector3(); - private var §_-ZR§:Vector3 = new Vector3(); + private var name_ZR:Vector3 = new Vector3(); private var bPos:Vector3 = new Vector3(); - private var §_-dt§:Vector3 = new Vector3(); + private var name_dt:Vector3 = new Vector3(); public function BoxSphereCollider() { @@ -36,9 +36,9 @@ package alternativa.physics.collision.colliders { box = prim2 as CollisionBox; } - sphere.transform.getAxis(3,this.§_-dt§); + sphere.transform.getAxis(3,this.name_dt); box.transform.getAxis(3,this.bPos); - box.transform.transformPointTransposed(this.§_-dt§,this.center); + box.transform.transformPointTransposed(this.name_dt,this.center); var hs:Vector3 = box.hs; var sx:Number = hs.x + sphere.r; var sy:Number = hs.y + sphere.r; @@ -49,53 +49,53 @@ package alternativa.physics.collision.colliders } if(this.center.x > hs.x) { - this.§_-ZR§.x = hs.x; + this.name_ZR.x = hs.x; } else if(this.center.x < -hs.x) { - this.§_-ZR§.x = -hs.x; + this.name_ZR.x = -hs.x; } else { - this.§_-ZR§.x = this.center.x; + this.name_ZR.x = this.center.x; } if(this.center.y > hs.y) { - this.§_-ZR§.y = hs.y; + this.name_ZR.y = hs.y; } else if(this.center.y < -hs.y) { - this.§_-ZR§.y = -hs.y; + this.name_ZR.y = -hs.y; } else { - this.§_-ZR§.y = this.center.y; + this.name_ZR.y = this.center.y; } if(this.center.z > hs.z) { - this.§_-ZR§.z = hs.z; + this.name_ZR.z = hs.z; } else if(this.center.z < -hs.z) { - this.§_-ZR§.z = -hs.z; + this.name_ZR.z = -hs.z; } else { - this.§_-ZR§.z = this.center.z; + this.name_ZR.z = this.center.z; } - var distSqr:Number = this.center.subtract(this.§_-ZR§).lengthSqr(); + var distSqr:Number = this.center.subtract(this.name_ZR).lengthSqr(); if(distSqr > sphere.r * sphere.r) { return false; } contact.body1 = sphere.body; contact.body2 = box.body; - contact.normal.copy(this.§_-ZR§).transform4(box.transform).subtract(this.§_-dt§).normalize().reverse(); - contact.§_-P3§ = 1; + contact.normal.copy(this.name_ZR).transform4(box.transform).subtract(this.name_dt).normalize().reverse(); + contact.name_P3 = 1; var cp:ContactPoint = contact.points[0]; cp.penetration = sphere.r - Math.sqrt(distSqr); - cp.pos.copy(contact.normal).scale(-sphere.r).add(this.§_-dt§); - cp.r1.diff(cp.pos,this.§_-dt§); + cp.pos.copy(contact.normal).scale(-sphere.r).add(this.name_dt); + cp.r1.diff(cp.pos,this.name_dt); cp.r2.diff(cp.pos,this.bPos); return true; } @@ -113,9 +113,9 @@ package alternativa.physics.collision.colliders { box = prim2 as CollisionBox; } - sphere.transform.getAxis(3,this.§_-dt§); + sphere.transform.getAxis(3,this.name_dt); box.transform.getAxis(3,this.bPos); - box.transform.transformPointTransposed(this.§_-dt§,this.center); + box.transform.transformPointTransposed(this.name_dt,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.name_ZR.x = hs.x; } else if(this.center.x < -hs.x) { - this.§_-ZR§.x = -hs.x; + this.name_ZR.x = -hs.x; } else { - this.§_-ZR§.x = this.center.x; + this.name_ZR.x = this.center.x; } if(this.center.y > hs.y) { - this.§_-ZR§.y = hs.y; + this.name_ZR.y = hs.y; } else if(this.center.y < -hs.y) { - this.§_-ZR§.y = -hs.y; + this.name_ZR.y = -hs.y; } else { - this.§_-ZR§.y = this.center.y; + this.name_ZR.y = this.center.y; } if(this.center.z > hs.z) { - this.§_-ZR§.z = hs.z; + this.name_ZR.z = hs.z; } else if(this.center.z < -hs.z) { - this.§_-ZR§.z = -hs.z; + this.name_ZR.z = -hs.z; } else { - this.§_-ZR§.z = this.center.z; + this.name_ZR.z = this.center.z; } - var distSqr:Number = this.center.subtract(this.§_-ZR§).lengthSqr(); + var distSqr:Number = this.center.subtract(this.name_ZR).lengthSqr(); return distSqr <= sphere.r * sphere.r; } } diff --git a/src/alternativa/physics/collision/colliders/BoxTriangleCollider.as b/src/alternativa/physics/collision/colliders/BoxTriangleCollider.as index a4147bd..70581e6 100644 --- a/src/alternativa/physics/collision/colliders/BoxTriangleCollider.as +++ b/src/alternativa/physics/collision/colliders/BoxTriangleCollider.as @@ -12,15 +12,15 @@ package alternativa.physics.collision.colliders { public var epsilon:Number = 0.001; - private var §_-Wt§:int; + private var name_Wt:int; - private var §_-hK§:Number; + private var name_hK:Number; private var toBox:Vector3 = new Vector3(); private var axis:Vector3 = new Vector3(); - private var §_-VZ§:Vector3 = new Vector3(); + private var name_VZ:Vector3 = new Vector3(); private var axis10:Vector3 = new Vector3(); @@ -65,17 +65,17 @@ package alternativa.physics.collision.colliders { box = CollisionBox(prim2); } - if(this.§_-Wt§ < 4) + if(this.name_Wt < 4) { - if(!this.findFaceContactPoints(box,tri,this.toBox,this.§_-Wt§,contact)) + if(!this.findFaceContactPoints(box,tri,this.toBox,this.name_Wt,contact)) { return false; } } else { - this.§_-Wt§ -= 4; - if(!this.findEdgesIntersection(box,tri,this.toBox,this.§_-Wt§ % 3,int(this.§_-Wt§ / 3),contact)) + this.name_Wt -= 4; + if(!this.findEdgesIntersection(box,tri,this.toBox,this.name_Wt % 3,int(this.name_Wt / 3),contact)) { return false; } @@ -112,7 +112,7 @@ package alternativa.physics.collision.colliders 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.name_hK = 1e+308; this.axis.x = triTransform.c; this.axis.y = triTransform.g; this.axis.z = triTransform.k; @@ -199,10 +199,10 @@ package alternativa.physics.collision.colliders { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.name_hK) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.name_hK = overlap; + this.name_Wt = axisIndex; } return true; } @@ -227,10 +227,10 @@ package alternativa.physics.collision.colliders { return false; } - if(overlap + this.epsilon < this.§_-hK§) + if(overlap + this.epsilon < this.name_hK) { - this.§_-hK§ = overlap; - this.§_-Wt§ = axisIndex; + this.name_hK = overlap; + this.name_Wt = axisIndex; } return true; } @@ -313,15 +313,15 @@ package alternativa.physics.collision.colliders var r:Vector3 = 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.name_VZ.x = triTransform.c; + this.name_VZ.y = triTransform.g; + this.name_VZ.z = triTransform.k; + var over:Boolean = toBox.x * this.name_VZ.x + toBox.y * this.name_VZ.y + toBox.z * this.name_VZ.z > 0; if(!over) { - this.§_-VZ§.x = -this.§_-VZ§.x; - this.§_-VZ§.y = -this.§_-VZ§.y; - this.§_-VZ§.z = -this.§_-VZ§.z; + this.name_VZ.x = -this.name_VZ.x; + this.name_VZ.y = -this.name_VZ.y; + this.name_VZ.z = -this.name_VZ.z; } var incFaceAxisIdx:int = 0; var incAxisDot:Number = 0; @@ -329,7 +329,7 @@ package alternativa.physics.collision.colliders 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.name_VZ.x + this.axis.y * this.name_VZ.y + this.axis.z * this.name_VZ.z; absDot = dot < 0 ? -dot : dot; if(absDot > maxDot) { @@ -340,17 +340,17 @@ package alternativa.physics.collision.colliders 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); + getFaceVertsByAxis(box.hs,incFaceAxisIdx,negativeFace,this.points1); + boxTransform.transformPointsN(this.points1,this.points2,4); + triTransform.transformPointsTransposedN(this.points2,this.points1,4); var pnum:int = this.clipByTriangle(tri); - contact.§_-P3§ = 0; + contact.name_P3 = 0; for(var i:int = 0; i < pnum; ) { v = this.points2[i]; if(over && v.z < 0 || !over && v.z > 0) { - cp = contact.points[contact.§_-P3§++]; + cp = contact.points[contact.name_P3++]; cpPos = cp.pos; cpPos.x = triTransform.a * v.x + triTransform.b * v.y + triTransform.c * v.z + triTransform.d; cpPos.y = triTransform.e * v.x + triTransform.f * v.y + triTransform.g * v.z + triTransform.h; @@ -367,9 +367,9 @@ package alternativa.physics.collision.colliders } i++; } - contact.normal.x = this.§_-VZ§.x; - contact.normal.y = this.§_-VZ§.y; - contact.normal.z = this.§_-VZ§.z; + contact.normal.x = this.name_VZ.x; + contact.normal.y = this.name_VZ.y; + contact.normal.z = this.name_VZ.z; return true; } @@ -382,13 +382,13 @@ package alternativa.physics.collision.colliders 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.name_VZ); + var negativeFace:Boolean = toBox.x * this.name_VZ.x + toBox.y * this.name_VZ.y + toBox.z * this.name_VZ.z > 0; if(!negativeFace) { - this.§_-VZ§.x = -this.§_-VZ§.x; - this.§_-VZ§.y = -this.§_-VZ§.y; - this.§_-VZ§.z = -this.§_-VZ§.z; + this.name_VZ.x = -this.name_VZ.x; + this.name_VZ.y = -this.name_VZ.y; + this.name_VZ.z = -this.name_VZ.z; } var v:Vector3 = this.points1[0]; v.x = tri.v0.x; @@ -402,17 +402,17 @@ package alternativa.physics.collision.colliders 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); + triTransform.transformPointsN(this.points1,this.points2,3); + boxTransform.transformPointsTransposedN(this.points2,this.points1,3); var pnum:int = this.clipByBox(box.hs,faceAxisIdx); - contact.§_-P3§ = 0; + contact.name_P3 = 0; for(var i:int = 0; i < pnum; ) { v = this.points1[i]; penetration = this.getPointBoxPenetration(box.hs,v,faceAxisIdx,negativeFace); if(penetration > -this.epsilon) { - cp = contact.points[contact.§_-P3§++]; + cp = contact.points[contact.name_P3++]; cpPos = cp.pos; cpPos.x = boxTransform.a * v.x + boxTransform.b * v.y + boxTransform.c * v.z + boxTransform.d; cpPos.y = boxTransform.e * v.x + boxTransform.f * v.y + boxTransform.g * v.z + boxTransform.h; @@ -429,9 +429,9 @@ package alternativa.physics.collision.colliders } i++; } - contact.normal.x = this.§_-VZ§.x; - contact.normal.y = this.§_-VZ§.y; - contact.normal.z = this.§_-VZ§.z; + contact.normal.x = this.name_VZ.x; + contact.normal.y = this.name_VZ.y; + contact.normal.z = this.name_VZ.z; return true; } @@ -471,58 +471,58 @@ package alternativa.physics.collision.colliders switch(faceAxisIdx) { case 0: - pnum = int(§_-Yb§(-hs.z,pnum,this.points1,this.points2,this.epsilon)); + pnum = int(clipLowZ(-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(clipHighZ(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(clipLowY(-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 clipHighY(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(clipLowZ(-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(clipHighZ(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(clipLowX(-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 clipHighX(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(clipLowX(-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(clipHighX(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(clipLowY(-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 clipHighY(hs.y,pnum,this.points2,this.points1,this.epsilon); break; default: return 0; @@ -697,9 +697,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_P3 = 1; var cp:ContactPoint = contact.points[0]; - cp.penetration = this.§_-hK§; + cp.penetration = this.name_hK; v = cp.pos; v.x = 0.5 * (x1 + this.axis10.x * t1 + x2 + this.axis20.x * t2); v.y = 0.5 * (y1 + this.axis10.y * t1 + y2 + this.axis20.y * t2); diff --git a/src/alternativa/physics/collision/colliders/SphereSphereCollider.as b/src/alternativa/physics/collision/colliders/SphereSphereCollider.as index e6498f0..226d012 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_P3 = 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..bd9f83d 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 name_ng: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..1903cfb 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_CV:Boolean; public var world:PhysicsScene; diff --git a/src/alternativa/protocol/OptionalMap.as b/src/alternativa/protocol/OptionalMap.as index 319f5bc..2aab7ba 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 name_bU: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.name_bU = 0; } public function getReadPosition() : int { - return this.§_-bU§; + return this.name_bU; } public function setReadPosition(value:int) : void { - this.§_-bU§ = value; + this.name_bU = value; } public function reset() : void { - this.§_-bU§ = 0; + this.name_bU = 0; } public function clear() : void { this.size = 0; - this.§_-bU§ = 0; + this.name_bU = 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.name_bU < this.size; } - public function OptionalMap() : Boolean + public function get() : Boolean { - if(this.§_-bU§ >= this.size) + if(this.name_bU >= this.size) { - throw new Error("Index out of bounds: " + this.§_-bU§); + throw new Error("Index out of bounds: " + this.name_bU); } - var res:Boolean = this.getBit(this.§_-bU§); - ++this.§_-bU§; + var res:Boolean = this.getBit(this.name_bU); + ++this.name_bU; 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.name_bU + " size:" + this.getSize() + " mask:"; + var _readPosition:int = this.name_bU; + for(var i:int = this.name_bU; i < this.getSize(); i++) { - result += this.OptionalMap() ? "1" : "0"; + result += this.get() ? "1" : "0"; } - this.§_-bU§ = _readPosition; + this.name_bU = _readPosition; return result; } public function clone() : alternativa.protocol.OptionalMap { var map:alternativa.protocol.OptionalMap = new alternativa.protocol.OptionalMap(this.size,this.map); - map.§_-bU§ = this.§_-bU§; + map.name_bU = this.name_bU; return map; } } diff --git a/src/alternativa/protocol/ProtocolBuffer.as b/src/alternativa/protocol/ProtocolBuffer.as index 24a6b56..41a1994 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 name_R:IDataOutput; - private var §_-ch§:IDataInput; + private var name_ch:IDataInput; - private var §_-7s§:OptionalMap; + private var name_7s:OptionalMap; public function ProtocolBuffer(output:IDataOutput, input:IDataInput, optionalMap:OptionalMap) { super(); - this.§_-R§ = output; - this.§_-ch§ = input; - this.§_-7s§ = optionalMap; + this.name_R = output; + this.name_ch = input; + this.name_7s = optionalMap; } public function get writer() : IDataOutput { - return this.§_-R§; + return this.name_R; } public function set writer(value:IDataOutput) : void { - this.§_-R§ = value; + this.name_R = value; } public function get reader() : IDataInput { - return this.§_-ch§; + return this.name_ch; } public function set reader(value:IDataInput) : void { - this.§_-ch§ = value; + this.name_ch = value; } public function get optionalMap() : OptionalMap { - return this.§_-7s§; + return this.name_7s; } public function set optionalMap(value:OptionalMap) : void { - this.§_-7s§ = value; + this.name_7s = value; } public function toString() : String diff --git a/src/alternativa/protocol/codec/OptionalCodecDecorator.as b/src/alternativa/protocol/codec/OptionalCodecDecorator.as index 6ad934a..cb8e7bf 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 name_In: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.name_In = IPrimitiveCodec(codec).nullValue(); } } public function encode(protocolBuffer:ProtocolBuffer, object:Object) : void { - if(object == this.§_-In§) + if(object == this.name_In) { 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.get() ? this.name_In : 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..87a3a54 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 name_5c:Object = new Object(); - private var §_-RY§:Dictionary = new Dictionary(false); + private var name_RY: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.name_5c[codecInfo] = codec; } public function registerCodecForType(type:Class, codec:ICodec) : void { - this.§_-5c§[new TypeCodecInfo(type,false)] = codec; - this.§_-5c§[new TypeCodecInfo(type,true)] = new OptionalCodecDecorator(codec); + this.name_5c[new TypeCodecInfo(type,false)] = codec; + this.name_5c[new TypeCodecInfo(type,true)] = new OptionalCodecDecorator(codec); } public function getCodec(codecInfo:ICodecInfo) : ICodec { - var result:ICodec = this.§_-5c§[codecInfo]; + var result:ICodec = this.name_5c[codecInfo]; if(result == null) { throw Error("Codec not found for " + codecInfo); } - if(this.§_-RY§[result] == null) + if(this.name_RY[result] == null) { result.init(this); - this.§_-RY§[result] = result; + this.name_RY[result] = result; } return result; } diff --git a/src/alternativa/protocol/info/CollectionCodecInfo.as b/src/alternativa/protocol/info/CollectionCodecInfo.as index 546871a..c43c528 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 name_jo:ICodecInfo; - private var §_-fp§:int; + private var name_fp:int; public function CollectionCodecInfo(elementCodec:ICodecInfo, optional:Boolean, level:int) { super(optional); - this.§_-jo§ = elementCodec; - this.§_-fp§ = level; + this.name_jo = elementCodec; + this.name_fp = level; } public function get level() : int { - return this.§_-fp§; + return this.name_fp; } public function get elementCodec() : ICodecInfo { - return this.§_-jo§; + return this.name_jo; } override public function toString() : String diff --git a/src/alternativa/protocol/info/TypeCodecInfo.as b/src/alternativa/protocol/info/TypeCodecInfo.as index 78fd457..f2217e8 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 name_hx:Class; public function TypeCodecInfo(type:Class, optional:Boolean) { super(optional); - this.§_-hx§ = type; + this.name_hx = type; } public function get type() : Class { - return this.§_-hx§; + return this.name_hx; } override public function toString() : String diff --git a/src/alternativa/tanks/InitBattleTask.as b/src/alternativa/tanks/InitBattleTask.as index 24948a8..4afb0d1 100644 --- a/src/alternativa/tanks/InitBattleTask.as +++ b/src/alternativa/tanks/InitBattleTask.as @@ -43,8 +43,8 @@ package alternativa.tanks var _loc3_:Entity = this.createMapEntity(); this.gameKernel.addEntity(_loc3_); this.preloader.setProgress(0.75); - §_-Uw§.addTask(new TankTestTask(GameKernel.INPUT_SYSTEM_PRIORITY + 1,this.config,this.gameKernel,_loc2_,this.preloader)); - §_-Uw§.killTask(this); + name_Uw.addTask(new TankTestTask(GameKernel.INPUT_SYSTEM_PRIORITY + 1,this.config,this.gameKernel,_loc2_,this.preloader)); + name_Uw.killTask(this); } private function createMapEntity() : Entity @@ -52,7 +52,7 @@ package alternativa.tanks var _loc2_:ByteArrayMap = null; var _loc6_:BlobGroup = null; var _loc7_:String = null; - var _loc3_:BlobCategory = this.config.§_-WG§.getCategory("skybox"); + var _loc3_:BlobCategory = this.config.name_WG.getCategory("skybox"); if(_loc3_ != null) { _loc2_ = new ByteArrayMap(); diff --git a/src/alternativa/tanks/TankTestTask.as b/src/alternativa/tanks/TankTestTask.as index a39c0e3..131028b 100644 --- a/src/alternativa/tanks/TankTestTask.as +++ b/src/alternativa/tanks/TankTestTask.as @@ -128,55 +128,55 @@ package alternativa.tanks private var gameKernel:GameKernel; - private var §_-D1§:int = 0; + private var name_D1:int = 0; - private var §_-Dl§:Vector. = new Vector.(); + private var name_Dl:Vector. = new Vector.(); private var tanks:Vector.; - private var §_-Dx§:int; + private var name_Dx:int; - private var §_-LW§:TextureAtlas; + private var name_LW:TextureAtlas; - private var §_-J4§:TextureAtlas; + private var name_J4:TextureAtlas; - private var §_-FD§:TextureAtlas; + private var name_FD:TextureAtlas; - private var §_-Qv§:BitmapData; + private var name_Qv:BitmapData; - private var §_-Wv§:FollowCameraController; + private var name_Wv:FollowCameraController; - private var §_-al§:OrbitCameraController; + private var name_al:OrbitCameraController; private var freeCameraController:FreeCameraController; - private var §_-8c§:ICameraController; + private var name_8c:ICameraController; - private var §_-Xq§:LightsManager; + private var name_Xq:LightsManager; - private var §_-34§:DebugPanel; + private var name_34:DebugPanel; - private var §_-T2§:FloatingTextEffect; + private var name_T2:FloatingTextEffect; - private var §_-pn§:int; + private var name_pn:int; - private var §_-8m§:int; + private var name_8m:int; - private var §_-lw§:int; + private var name_lw:int; - private var §_-BT§:TextureResourceCache; + private var name_BT:TextureResourceCache; - private var §_-pb§:MultiBitmapTextureResourceCache; + private var name_pb:MultiBitmapTextureResourceCache; - private var §_-fa§:TextureResourceService; + private var name_fa:TextureResourceService; - private var §_-n6§:BattleMessagesSubsystem; + private var name_n6:BattleMessagesSubsystem; private var preloader:Preloader; - private var §_-3t§:Entity; + private var name_3t:Entity; - private var §_-3u§:DataCache = new DataCache(); + private var name_3u:DataCache = new DataCache(); public function TankTestTask(param1:int, param2:Config, param3:GameKernel, param4:FreeCameraController, param5:Preloader) { @@ -186,27 +186,27 @@ package alternativa.tanks this.gameKernel = param3; this.freeCameraController = param4; this.tanks = new Vector.(); - 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 TextureResourceService(param3); + this.name_Dx = -1; + this.name_Qv = new BitmapData(1,1); + this.name_Qv.setPixel(0,0,11141120); + this.name_8c = param4; + this.name_BT = new TextureResourceCache(param2.name_WX); + this.name_pb = new MultiBitmapTextureResourceCache(param2.name_WX); + this.name_fa = new TextureResourceService(param3); TanksTestingTool.testTask = this; } override public function start() : void { - var _loc1_:IInput = IInput(§_-Uw§.getTaskInterface(IInput)); + var _loc1_:IInput = IInput(name_Uw.getTaskInterface(IInput)); _loc1_.addKeyboardListener(KeyboardEventType.KEY_DOWN,this.onKeyDown); - var _loc2_:IEventSystem = IEventSystem(§_-Uw§.getTaskInterface(IEventSystem)); + var _loc2_:IEventSystem = IEventSystem(name_Uw.getTaskInterface(IEventSystem)); _loc2_.addEventListener(TrackedChassisGraphicsComponent.TANK_CLICK,this); - this.§_-Wv§ = new FollowCameraController(this.gameKernel.getRenderSystem().getCamera(),this.gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector,CollisionGroup.STATIC,_loc1_); - this.§_-al§ = new OrbitCameraController(this.gameKernel.getRenderSystem().getCamera(),this.gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector,CollisionGroup.STATIC,_loc1_); - this.§_-Xq§ = new LightsManager(this.gameKernel.getRenderSystem()); - this.§_-34§ = new DebugPanel(); - this.gameKernel.stage.addChild(this.§_-34§); + this.name_Wv = new FollowCameraController(this.gameKernel.getRenderSystem().getCamera(),this.gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector,CollisionGroup.STATIC,_loc1_); + this.name_al = new OrbitCameraController(this.gameKernel.getRenderSystem().getCamera(),this.gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector,CollisionGroup.STATIC,_loc1_); + this.name_Xq = new LightsManager(this.gameKernel.getRenderSystem()); + this.name_34 = new DebugPanel(); + this.gameKernel.stage.addChild(this.name_34); var _loc3_:IConsole = IConsole(OSGi.getInstance().getService(IConsole)); _loc3_.setCommandHandler("addtank",this.consoleAddTankHandler); var _loc4_:XMLList = this.config.xml.elements("console-commands"); @@ -215,14 +215,14 @@ package alternativa.tanks this.executeConsoleCommands(_loc3_,this.config.xml.elements("console-commands")[0].toString()); } _loc3_.setCommandHandler("lstanks",this.listTanks); - this.§_-n6§ = new BattleMessagesSubsystem(GameKernel.RENDER_SYSTEM_PRIORITY + 1,10,this.gameKernel.stage,0,0); - this.gameKernel.addTask(this.§_-n6§); + this.name_n6 = new BattleMessagesSubsystem(GameKernel.RENDER_SYSTEM_PRIORITY + 1,10,this.gameKernel.stage,0,0); + this.gameKernel.addTask(this.name_n6); this.gameKernel.getEventSystem().addEventListener(GameEvents.MAP_COMPLETE,this); } private function get activeTank() : Entity { - return this.§_-Dx§ >= 0 ? this.tanks[this.§_-Dx§] : null; + return this.name_Dx >= 0 ? this.tanks[this.name_Dx] : null; } private function selectTank(param1:int) : void @@ -233,15 +233,15 @@ package alternativa.tanks { this.activeTank.dispatchEvent(TankEvents.SET_DISABLED_STATE); } - this.§_-Dx§ = param1; + this.name_Dx = param1; this.activeTank.dispatchEvent(TankEvents.SET_ACTIVE_STATE); - if(this.§_-8c§ == this.§_-Wv§) + if(this.name_8c == this.name_Wv) { - this.§_-Wv§.setTarget(this.activeTank); + this.name_Wv.setTarget(this.activeTank); } - if(this.§_-8c§ == this.§_-al§) + if(this.name_8c == this.name_al) { - this.§_-al§.setTarget(this.activeTank); + this.name_al.setTarget(this.activeTank); } } } @@ -250,11 +250,11 @@ package alternativa.tanks { if(this.tanks.length > 0) { - this.selectTank((this.§_-Dx§ + 1) % this.tanks.length); + this.selectTank((this.name_Dx + 1) % this.tanks.length); } - if(this.§_-8c§ != this.§_-Wv§) + if(this.name_8c != this.name_Wv) { - this.setCameraController(this.§_-Wv§); + this.setCameraController(this.name_Wv); } } @@ -263,7 +263,7 @@ package alternativa.tanks var _loc1_:int = 0; if(this.tanks.length > 0) { - _loc1_ = this.§_-Dx§ - 1; + _loc1_ = this.name_Dx - 1; if(_loc1_ < 0) { _loc1_ = this.tanks.length - 1; @@ -303,7 +303,7 @@ package alternativa.tanks this.switchCameraController(); break; case Keyboard.N: - if(this.§_-8c§ == this.freeCameraController) + if(this.name_8c == this.freeCameraController) { FreeCameraController.targeted = !FreeCameraController.targeted; break; @@ -348,7 +348,7 @@ package alternativa.tanks private function createRandomBattleMessage() : void { - this.§_-n6§.addMessage("Message: " + Math.random(),ColorUtils.random()); + this.name_n6.addMessage("Message: " + Math.random(),ColorUtils.random()); } private function controlKeyPressed() : Boolean @@ -379,7 +379,7 @@ package alternativa.tanks var _loc4_:Vector. = null; var _loc5_:int = 0; var _loc8_:TextureMaterial = null; - var _loc1_:Vector. = this.§_-pb§.getFrames("thunder/explosion"); + var _loc1_:Vector. = this.name_pb.getFrames("thunder/explosion"); var _loc2_:RenderSystem = this.gameKernel.getRenderSystem(); for each(_loc3_ in _loc1_) { @@ -390,7 +390,7 @@ package alternativa.tanks while(_loc5_ < _loc1_.length) { _loc8_ = new TextureMaterial(_loc1_[_loc5_]); - _loc8_.§_-L4§ = true; + _loc8_.name_L4 = true; _loc4_[_loc5_] = _loc8_; _loc5_++; } @@ -402,8 +402,8 @@ package alternativa.tanks private function createThunderShotEffect() : void { - var _loc1_:TextureResource = this.§_-BT§.getResource("smoky/diffuse"); - var _loc2_:TextureResource = this.§_-BT§.getResource("smoky/opacity"); + var _loc1_:TextureResource = this.name_BT.getResource("smoky/diffuse"); + var _loc2_:TextureResource = this.name_BT.getResource("smoky/opacity"); var _loc3_:RenderSystem = this.gameKernel.getRenderSystem(); _loc3_.useResource(_loc1_); _loc3_.useResource(_loc2_); @@ -414,33 +414,33 @@ package alternativa.tanks private function selectPrevTurret() : void { - --this.§_-8m§; - if(this.§_-8m§ < 0) + --this.name_8m; + if(this.name_8m < 0) { - this.§_-8m§ += this.config.tankParts.numTurrets; + this.name_8m += this.config.tankParts.numTurrets; } this.rebuildActiveTank(); } private function selectNextTurret() : void { - this.§_-8m§ = (this.§_-8m§ + 1) % this.config.tankParts.numTurrets; + this.name_8m = (this.name_8m + 1) % this.config.tankParts.numTurrets; this.rebuildActiveTank(); } private function selectPrevHull() : void { - --this.§_-pn§; - if(this.§_-pn§ < 0) + --this.name_pn; + if(this.name_pn < 0) { - this.§_-pn§ += this.config.tankParts.numHulls; + this.name_pn += this.config.tankParts.numHulls; } this.rebuildActiveTank(); } public function selectNextHull() : void { - this.§_-pn§ = (this.§_-pn§ + 1) % this.config.tankParts.numHulls; + this.name_pn = (this.name_pn + 1) % this.config.tankParts.numHulls; this.rebuildActiveTank(); } @@ -456,9 +456,9 @@ package alternativa.tanks { this.removeActiveTank(); _loc2_ = new TankParams(); - _loc2_.hull = this.config.tankParts.getHull(this.§_-pn§).id; - _loc2_.turret = this.config.tankParts.getTurret(this.§_-8m§).id; - _loc2_.coloring = this.§_-lw§; + _loc2_.hull = this.config.tankParts.getHull(this.name_pn).id; + _loc2_.turret = this.config.tankParts.getTurret(this.name_8m).id; + _loc2_.coloring = this.name_lw; _loc3_ = this.addTank(_loc2_); this.selectTank(this.tanks.length - 1); _loc4_ = IChassisPhysicsComponent(_loc1_.getComponentStrict(IChassisPhysicsComponent)); @@ -479,14 +479,14 @@ package alternativa.tanks var _loc1_:TurretGraphicsComponent = null; if(this.activeTank != null) { - if(this.§_-T2§ == null) + if(this.name_T2 == null) { - this.§_-T2§ = FloatingTextEffect(this.gameKernel.getObjectPoolManager().getObject(FloatingTextEffect)); + this.name_T2 = FloatingTextEffect(this.gameKernel.getObjectPoolManager().getObject(FloatingTextEffect)); _loc1_ = TurretGraphicsComponent(this.activeTank.getComponentStrict(TurretGraphicsComponent)); - this.§_-T2§.init(5000,_loc1_.getObject3D(),this.onFloatingTextEffectDestroy); - this.gameKernel.getRenderSystem().each(this.§_-T2§); + this.name_T2.init(5000,_loc1_.getObject3D(),this.onFloatingTextEffectDestroy); + this.gameKernel.getRenderSystem().each(this.name_T2); } - this.§_-T2§.addMessage("Message " + Math.random(),65280); + this.name_T2.addMessage("Message " + Math.random(),65280); } } @@ -512,18 +512,18 @@ package alternativa.tanks } break; case GameEvents.MAP_COMPLETE: - this.setCameraController(this.§_-Wv§); + this.setCameraController(this.name_Wv); if(this.config.xml.user.length() > 0) { _loc6_ = TankParams.fromXML(this.config.xml.user[0],true); - this.§_-lw§ = _loc6_.coloring; - this.§_-pn§ = this.config.tankParts.getHullIndex(_loc6_.hull); - this.§_-8m§ = this.config.tankParts.getTurretIndex(_loc6_.turret); - if(this.§_-pn§ < 0) + this.name_lw = _loc6_.coloring; + this.name_pn = this.config.tankParts.getHullIndex(_loc6_.hull); + this.name_8m = this.config.tankParts.getTurretIndex(_loc6_.turret); + if(this.name_pn < 0) { throw new ArgumentError("bad hull: " + _loc6_.hull); } - if(this.§_-8m§ < 0) + if(this.name_8m < 0) { throw new ArgumentError("bad turret: " + _loc6_.turret); } @@ -551,12 +551,12 @@ package alternativa.tanks if(_loc4_.length > 0) { _loc11_ = _loc4_[0] as BitmapCubeTextureResource; - _loc11_.left = this.config.§_-WX§.getTexture("left_01") as BitmapData; - _loc11_.right = this.config.§_-WX§.getTexture("right_01") as BitmapData; - _loc11_.back = this.config.§_-WX§.getTexture("back_01") as BitmapData; - _loc11_.front = this.config.§_-WX§.getTexture("front_01") as BitmapData; - _loc11_.top = this.config.§_-WX§.getTexture("top_01") as BitmapData; - _loc11_.bottom = this.config.§_-WX§.getTexture("bottom_01") as BitmapData; + _loc11_.left = this.config.name_WX.getTexture("left_01") as BitmapData; + _loc11_.right = this.config.name_WX.getTexture("right_01") as BitmapData; + _loc11_.back = this.config.name_WX.getTexture("back_01") as BitmapData; + _loc11_.front = this.config.name_WX.getTexture("front_01") as BitmapData; + _loc11_.top = this.config.name_WX.getTexture("top_01") as BitmapData; + _loc11_.bottom = this.config.name_WX.getTexture("bottom_01") as BitmapData; this.gameKernel.getRenderSystem().useResource(_loc11_); } this.createFire(); @@ -583,8 +583,8 @@ package alternativa.tanks private function addCachedTank() : void { - this.gameKernel.addEntity(this.§_-3t§); - this.tanks.push(this.§_-3t§); + this.gameKernel.addEntity(this.name_3t); + this.tanks.push(this.name_3t); this.selectTank(this.tanks.length - 1); } @@ -601,7 +601,7 @@ package alternativa.tanks var _loc2_:TankHull = this.config.tankParts.getHullByID(param1.hull); var _loc3_:TankTurret = this.config.tankParts.getTurretByID(param1.turret); var _loc4_:BitmapData = this.config.tankParts.getColormap(param1.coloring); - var _loc5_:BitmapData = this.config.§_-WX§.getTexture(DEAD_TEXTURE_ID) as BitmapData; + var _loc5_:BitmapData = this.config.name_WX.getTexture(DEAD_TEXTURE_ID) as BitmapData; var _loc6_:Entity = new Entity(Entity.generateId()); var _loc9_:LegacyTrackedChassisComponent = new LegacyTrackedChassisComponent(_loc2_,1000,80000); var _loc10_:int = conMaxSpeed.value; @@ -646,9 +646,9 @@ package alternativa.tanks if(param1.isUser) { } - var _loc16_:Vector. = this.getFrameMaterials(this.§_-pb§.getFrames("tank_explosion/shock_wave")); - var _loc17_:Vector. = this.getFrameMaterials(this.§_-pb§.getFrames("tank_explosion/explosion")); - var _loc18_:Vector. = this.getFrameMaterials(this.§_-pb§.getFrames("tank_explosion/smoke")); + var _loc16_:Vector. = this.getFrameMaterials(this.name_pb.getFrames("tank_explosion/shock_wave")); + var _loc17_:Vector. = this.getFrameMaterials(this.name_pb.getFrames("tank_explosion/explosion")); + var _loc18_:Vector. = this.getFrameMaterials(this.name_pb.getFrames("tank_explosion/smoke")); var _loc19_:TankExplosionComponent = new TankExplosionComponent(1200,200,_loc16_,_loc17_,_loc18_); _loc6_.addComponent(_loc19_); _loc6_.initComponents(); @@ -657,13 +657,13 @@ package alternativa.tanks private function tracePos() : void { - var _loc1_:LegacyTrackedChassisComponent = LegacyTrackedChassisComponent(this.tanks[this.§_-Dx§].getComponent(LegacyTrackedChassisComponent)); + var _loc1_:LegacyTrackedChassisComponent = LegacyTrackedChassisComponent(this.tanks[this.name_Dx].getComponent(LegacyTrackedChassisComponent)); var _loc2_:Vector3 = new Vector3(); - _loc1_.§_-UQ§.getEulerAngles(_loc2_); + _loc1_.name_UQ.getEulerAngles(_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","position %1 %2 %3",_loc1_.name_bi.x.toFixed(),_loc1_.name_bi.y.toFixed(),_loc1_.name_bi.z.toFixed()); log.log("tank","rotation %1 %2 %3",_loc2_.x.toFixed(),_loc2_.y.toFixed(),_loc2_.z.toFixed()); } @@ -675,14 +675,14 @@ package alternativa.tanks var _loc7_:XML = null; var _loc8_:Fire = null; var _loc9_:Array = null; - var _loc1_:TextureResource = this.§_-BT§.getResource("fire/diffuse"); - var _loc2_:TextureResource = this.§_-BT§.getResource("fire/opacity"); + var _loc1_:TextureResource = this.name_BT.getResource("fire/diffuse"); + var _loc2_:TextureResource = this.name_BT.getResource("fire/opacity"); var _loc3_:RenderSystem = this.gameKernel.getRenderSystem(); _loc3_.useResource(_loc1_); _loc3_.useResource(_loc2_); - this.§_-LW§ = new TextureAtlas(_loc1_,_loc2_,8,8,0,16,30,true); - this.§_-J4§ = new TextureAtlas(_loc1_,_loc2_,8,8,16,16,30,true); - this.§_-FD§ = new TextureAtlas(_loc1_,_loc2_,8,8,32,32,45,true,0.5,0.5); + this.name_LW = new TextureAtlas(_loc1_,_loc2_,8,8,0,16,30,true); + this.name_J4 = new TextureAtlas(_loc1_,_loc2_,8,8,16,16,30,true); + this.name_FD = new TextureAtlas(_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; @@ -691,11 +691,11 @@ package alternativa.tanks while(_loc5_ < _loc6_) { _loc7_ = _loc4_[_loc5_]; - _loc8_ = new Fire(this.§_-LW§,this.§_-J4§,this.§_-FD§,5,true); + _loc8_ = new Fire(this.name_LW,this.name_J4,this.name_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.name_Dl.push(_loc8_); this.gameKernel.getRenderSystem().addA3DEffect(_loc8_); _loc5_++; } @@ -705,16 +705,16 @@ package alternativa.tanks private function createTracksMaterial(param1:TankHull) : TracksMaterial2 { var _loc2_:ByteArrayMap = param1.textureData; - var _loc3_:ATFTextureResource = this.§_-fa§.getCompressedTextureResource(_loc2_.getValue(TankHullParser.KEY_TRACKS_DIFFUSE)); - var _loc4_:ATFTextureResource = this.§_-fa§.getCompressedTextureResource(_loc2_.getValue(TankHullParser.KEY_TRACKS_NORMAL)); + var _loc3_:ATFTextureResource = this.name_fa.getCompressedTextureResource(_loc2_.getValue(TankHullParser.KEY_TRACKS_DIFFUSE)); + var _loc4_:ATFTextureResource = this.name_fa.getCompressedTextureResource(_loc2_.getValue(TankHullParser.KEY_TRACKS_NORMAL)); var _loc5_:TracksMaterial2 = new TracksMaterial2(); _loc5_.glossiness = 65; - _loc5_.§_-kj§ = 0.6; + _loc5_.name_kj = 0.6; _loc5_.diffuseMap = _loc3_; _loc5_.normalMap = _loc4_; if(_loc2_.getValue(TankHullParser.KEY_TRACKS_OPACITY) != null) { - _loc5_.opacityMap = this.§_-fa§.getCompressedTextureResource(_loc2_.getValue(TankHullParser.KEY_TRACKS_OPACITY)); + _loc5_.opacityMap = this.name_fa.getCompressedTextureResource(_loc2_.getValue(TankHullParser.KEY_TRACKS_OPACITY)); } return _loc5_; } @@ -725,7 +725,7 @@ package alternativa.tanks var _loc2_:ByteArrayMap = param1.textureData; if(_loc2_.getValue(TankHullParser.KEY_SHADOW) != null) { - _loc3_ = this.§_-fa§.getCompressedTextureResource(_loc2_.getValue(TankHullParser.KEY_SHADOW)); + _loc3_ = this.name_fa.getCompressedTextureResource(_loc2_.getValue(TankHullParser.KEY_SHADOW)); return new GiShadowMaterial(_loc3_); } return null; @@ -743,7 +743,7 @@ package alternativa.tanks var _loc6_:GenericTargetingSystem = new GenericTargetingSystem(Math.PI / 9,20,Math.PI / 9,20,_loc4_,_loc5_); _loc6_.setCollisionDetector(this.gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector); _loc6_.setTargetValidator(new SimpleTargetEvaluator()); - var _loc7_:Vector. = this.§_-pb§.getFrames("thunder/explosion"); + var _loc7_:Vector. = this.name_pb.getFrames("thunder/explosion"); var _loc8_:RenderSystem = this.gameKernel.getRenderSystem(); for each(_loc9_ in _loc7_) { @@ -754,12 +754,12 @@ package alternativa.tanks while(_loc11_ < _loc7_.length) { _loc18_ = new TextureMaterial(_loc7_[_loc11_]); - _loc18_.§_-L4§ = true; + _loc18_.name_L4 = true; _loc10_[_loc11_] = _loc18_; _loc11_++; } - var _loc12_:TextureResource = this.§_-BT§.getResource("smoky/diffuse"); - var _loc13_:TextureResource = this.§_-BT§.getResource("smoky/opacity"); + var _loc12_:TextureResource = this.name_BT.getResource("smoky/diffuse"); + var _loc13_:TextureResource = this.name_BT.getResource("smoky/opacity"); _loc8_.useResource(_loc12_); _loc8_.useResource(_loc13_); DebugSplashDamageEffects.init(_loc12_,_loc13_); @@ -770,7 +770,7 @@ package alternativa.tanks var _loc16_:BitmapData = new BitmapData(20,20,false,0); _loc16_.perlinNoise(20,20,3,13,false,true); ThunderShotEffectComponent.init(_loc12_,_loc13_); - var _loc17_:ThunderShotEffectComponent = new ThunderShotEffectComponent(this.§_-BT§.getResource("thunder/shot")); + var _loc17_:ThunderShotEffectComponent = new ThunderShotEffectComponent(this.name_BT.getResource("thunder/shot")); param1.addComponent(_loc17_); } @@ -785,7 +785,7 @@ package alternativa.tanks var _loc6_:GenericTargetingSystem = new GenericTargetingSystem(Math.PI / 9,20,Math.PI / 9,20,_loc4_,_loc5_); _loc6_.setCollisionDetector(this.gameKernel.getPhysicsSystem().getPhysicsScene().collisionDetector); _loc6_.setTargetValidator(new SimpleTargetEvaluator()); - var _loc7_:Vector. = this.§_-pb§.getFrames("thunder/explosion"); + var _loc7_:Vector. = this.name_pb.getFrames("thunder/explosion"); var _loc8_:RenderSystem = this.gameKernel.getRenderSystem(); for each(_loc9_ in _loc7_) { @@ -796,12 +796,12 @@ package alternativa.tanks while(_loc11_ < _loc7_.length) { _loc18_ = new TextureMaterial(_loc7_[_loc11_]); - _loc18_.§_-L4§ = true; + _loc18_.name_L4 = true; _loc10_[_loc11_] = _loc18_; _loc11_++; } - var _loc12_:TextureResource = this.§_-BT§.getResource("smoky/diffuse"); - var _loc13_:TextureResource = this.§_-BT§.getResource("smoky/opacity"); + var _loc12_:TextureResource = this.name_BT.getResource("smoky/diffuse"); + var _loc13_:TextureResource = this.name_BT.getResource("smoky/opacity"); _loc8_.useResource(_loc12_); _loc8_.useResource(_loc13_); DebugSplashDamageEffects.init(_loc12_,_loc13_); @@ -812,7 +812,7 @@ package alternativa.tanks var _loc16_:BitmapData = new BitmapData(20,20,false,0); _loc16_.perlinNoise(20,20,3,13,false,true); ThunderShotEffectComponent.init(_loc12_,_loc13_); - var _loc17_:ThunderShotEffectComponent = new ThunderShotEffectComponent(this.§_-BT§.getResource("thunder/shot")); + var _loc17_:ThunderShotEffectComponent = new ThunderShotEffectComponent(this.name_BT.getResource("thunder/shot")); param1.addComponent(_loc17_); } @@ -830,10 +830,10 @@ package alternativa.tanks var _loc11_:EnergyTargetingSystem = new EnergyTargetingSystem(Math.PI / 4,20,Math.PI / 4,20,100,_loc9_,_loc10_); var _loc13_:Number = WeaponConst.BASE_FORCE; var _loc14_:IWeaponDistanceWeakening = new DebugWeaponDistanceWeakening(2000,4000,0.5); - var _loc15_:BitmapData = this.config.§_-WX§.getTexture("plasma/charge") as BitmapData; + var _loc15_:BitmapData = this.config.name_WX.getTexture("plasma/charge") as BitmapData; var _loc16_:Vector. = TextureUtils.parseImageStrip(_loc15_,_loc15_.height); var _loc17_:Vector. = this.getMaterialStrip(_loc16_); - var _loc18_:BitmapData = this.config.§_-WX§.getTexture("plasma/explosion") as BitmapData; + var _loc18_:BitmapData = this.config.name_WX.getTexture("plasma/explosion") as BitmapData; _loc16_ = TextureUtils.parseImageStrip(_loc18_,_loc18_.height); var _loc19_:Vector. = this.getMaterialStrip(_loc16_); var _loc20_:ColorTransform = new ColorTransform(5); @@ -844,7 +844,7 @@ package alternativa.tanks param1.addComponent(_loc24_); var _loc25_:BitmapData = new BitmapData(20,20,false,0); _loc25_.perlinNoise(20,20,3,13,false,true); - var _loc26_:TextureResource = this.§_-BT§.getResource("plasma/shot"); + var _loc26_:TextureResource = this.name_BT.getResource("plasma/shot"); var _loc27_:SimpleWeaponShotSFXComponent = new SimpleWeaponShotSFXComponent(_loc26_,null); param1.addComponent(_loc27_); } @@ -858,8 +858,8 @@ package alternativa.tanks var _loc11_:FlamethrowerSFXComponent = new FlamethrowerSFXComponent(3000,_loc7_,20,3000,_loc10_); param1.addComponent(_loc11_); var _loc16_:RenderSystem = this.gameKernel.getRenderSystem(); - var _loc17_:TextureResource = this.§_-BT§.getResource("firebird/diffuse"); - var _loc18_:TextureResource = this.§_-BT§.getResource("firebird/opacity"); + var _loc17_:TextureResource = this.name_BT.getResource("firebird/diffuse"); + var _loc18_:TextureResource = this.name_BT.getResource("firebird/opacity"); _loc16_.useResource(_loc17_); _loc16_.useResource(_loc18_); FlamethrowerSFXComponent.init(_loc17_,_loc18_); @@ -884,32 +884,32 @@ package alternativa.tanks private function removeActiveTank() : void { var _loc1_:Entity = null; - if(this.§_-Dx§ >= 0) + if(this.name_Dx >= 0) { _loc1_ = this.activeTank; this.gameKernel.removeEntity(_loc1_); - this.tanks.splice(this.§_-Dx§,1); + this.tanks.splice(this.name_Dx,1); if(this.tanks.length == 0) { - this.§_-Dx§ = -1; + this.name_Dx = -1; } else { - this.§_-Dx§--; - this.selectTank(this.§_-Dx§); + this.name_Dx--; + this.selectTank(this.name_Dx); } } } private function switchCameraController() : void { - if(this.§_-8c§ == this.§_-al§) + if(this.name_8c == this.name_al) { - this.setCameraController(this.§_-Wv§); + this.setCameraController(this.name_Wv); } - else if(this.§_-8c§ == this.freeCameraController) + else if(this.name_8c == this.freeCameraController) { - this.setCameraController(this.§_-al§); + this.setCameraController(this.name_al); } else { @@ -921,13 +921,13 @@ package alternativa.tanks { if(this.activeTank != null) { - if(param1 == this.§_-Wv§) + if(param1 == this.name_Wv) { - this.§_-Wv§.setTarget(this.activeTank); + this.name_Wv.setTarget(this.activeTank); } - if(param1 == this.§_-al§) + if(param1 == this.name_al) { - this.§_-al§.setTarget(this.activeTank); + this.name_al.setTarget(this.activeTank); } if(param1 == this.freeCameraController) { @@ -935,7 +935,7 @@ package alternativa.tanks } } this.gameKernel.getRenderSystem().setCameraController(param1); - this.§_-8c§ = param1; + this.name_8c = param1; } private function getPartMaterials(param1:TankPart, param2:BitmapData, param3:BitmapData, param4:Number, param5:Number) : TankPartMaterials @@ -944,29 +944,29 @@ package alternativa.tanks var _loc16_:TankWheel = null; var _loc6_:RenderSystem = this.gameKernel.getRenderSystem(); var _loc7_:ByteArrayMap = param1.textureData; - var _loc8_:ATFTextureResource = this.§_-fa§.getCompressedTextureResource(_loc7_.getValue(TankPartParser.KEY_DIFFUSE_MAP)); - var _loc9_:ATFTextureResource = this.§_-fa§.getCompressedTextureResource(_loc7_.getValue(TankPartParser.KEY_NORMAL_MAP)); - var _loc10_:ATFTextureResource = this.§_-fa§.getCompressedTextureResource(_loc7_.getValue(TankPartParser.KEY_SURFACE_MAP)); - var _loc11_:BitmapTextureResource = this.§_-fa§.getBitmapTextureResource(param2); - var _loc12_:BitmapTextureResource = this.§_-fa§.getBitmapTextureResource(param3); + var _loc8_:ATFTextureResource = this.name_fa.getCompressedTextureResource(_loc7_.getValue(TankPartParser.KEY_DIFFUSE_MAP)); + var _loc9_:ATFTextureResource = this.name_fa.getCompressedTextureResource(_loc7_.getValue(TankPartParser.KEY_NORMAL_MAP)); + var _loc10_:ATFTextureResource = this.name_fa.getCompressedTextureResource(_loc7_.getValue(TankPartParser.KEY_SURFACE_MAP)); + var _loc11_:BitmapTextureResource = this.name_fa.getBitmapTextureResource(param2); + var _loc12_:BitmapTextureResource = this.name_fa.getBitmapTextureResource(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; + _loc13_.name_jM = param4; + _loc13_.name_Sf = param5; + _loc14_.name_jM = param4; + _loc14_.name_Sf = param5; _loc6_.useResource(param1.geometry); if(param1 is TankHull) { _loc15_ = TankHull(param1); - for each(var _loc19_ in _loc15_.§_-EY§.concat(_loc15_.§_-M4§)) + for each(var _loc19_ in _loc15_.name_EY.concat(_loc15_.name_M4)) { _loc16_ = _loc19_; _loc19_; _loc6_.useResource(_loc16_.geometry); } - _loc6_.useResource(_loc15_.§_-Ei§.geometry); - _loc6_.useResource(_loc15_.§_-iA§.geometry); + _loc6_.useResource(_loc15_.name_Ei.geometry); + _loc6_.useResource(_loc15_.name_iA.geometry); _loc6_.useResource(_loc15_.shadow.geometry); } return new TankPartMaterials(_loc13_,_loc14_); @@ -979,7 +979,7 @@ package alternativa.tanks private function onFloatingTextEffectDestroy() : void { - this.§_-T2§ = null; + this.name_T2 = null; null; } @@ -988,7 +988,7 @@ package alternativa.tanks var _loc4_:BitmapData = null; var _loc5_:Vector. = null; var _loc6_:FlamethrowerSFXData = null; - var _loc1_:BitmapData = this.config.§_-WX§.getTexture("flame/sprite") as BitmapData; + var _loc1_:BitmapData = this.config.name_WX.getTexture("flame/sprite") as BitmapData; var _loc2_:Vector. = TextureUtils.parseImageStrip(_loc1_); var _loc3_:Vector. = new Vector.(); for each(var _loc9_ in _loc2_) @@ -1039,7 +1039,7 @@ package alternativa.tanks { _loc7_.z = Math.atan2(-_loc5_.normal.x,_loc5_.normal.y); } - _loc8_ = this.§_-pb§.getFrames("tank_explosion/shock_wave"); + _loc8_ = this.name_pb.getFrames("tank_explosion/shock_wave"); _loc9_ = this.getFrameMaterials(_loc8_); _loc10_ = AnimatedPlaneEffect(this.gameKernel.getObjectPoolManager().getObject(AnimatedPlaneEffect)); _loc10_.init(conShockSize.value,_loc6_,_loc7_,_loc9_,30,conShockSizeGrow.value); @@ -1061,7 +1061,7 @@ package alternativa.tanks var _loc1_:Entity = this.activeTank; if(_loc1_ != null) { - _loc2_ = this.§_-pb§.getFrames("tank_explosion/explosion"); + _loc2_ = this.name_pb.getFrames("tank_explosion/explosion"); _loc3_ = this.getFrameMaterials(_loc2_); _loc4_ = AnimatedSpriteEffect(this.gameKernel.getObjectPoolManager().getObject(AnimatedSpriteEffect)); _loc5_ = IChassisPhysicsComponent(this.activeTank.getComponentStrict(IChassisPhysicsComponent)); @@ -1108,7 +1108,7 @@ package alternativa.tanks _loc7_ = 15; _loc8_ = -1000; _loc9_ = 400; - _loc10_ = this.§_-pb§.getFrames("tank_explosion/smoke"); + _loc10_ = this.name_pb.getFrames("tank_explosion/smoke"); _loc11_ = this.getFrameMaterials(_loc10_); _loc12_ = IChassisPhysicsComponent(this.activeTank.getComponentStrict(IChassisPhysicsComponent)); _loc13_ = _loc12_.getBody().state.position.clone(); @@ -1137,7 +1137,7 @@ package alternativa.tanks private function getFrameMaterials(param1:Vector.) : Vector. { FrameMaterialsFactory.INSTANCE.renderSystem = this.gameKernel.getRenderSystem(); - return this.§_-3u§.getData(param1,FrameMaterialsFactory.INSTANCE) as Vector.; + return this.name_3u.getData(param1,FrameMaterialsFactory.INSTANCE) as Vector.; } private function listTanks(param1:IConsole, param2:Array) : void @@ -1209,7 +1209,7 @@ class FrameMaterialsFactory implements IDataFactory { this.renderSystem.useResource(_loc2_[_loc5_]); _loc6_ = new TextureMaterial(_loc2_[_loc5_]); - _loc6_.§_-L4§ = true; + _loc6_.name_L4 = true; _loc4_[_loc5_] = _loc6_; _loc5_++; } diff --git a/src/alternativa/tanks/TextureResourceService.as b/src/alternativa/tanks/TextureResourceService.as index 10d6877..a2cdd96 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 name_9P:IGenericTargetEvaluator; - private var §_-bW§:IRailgunTargetEvaluator; + private var name_bW:IRailgunTargetEvaluator; - private var §_-ci§:IGenericTargetEvaluator; + private var name_ci:IGenericTargetEvaluator; - private var §_-L1§:Dictionary; + private var name_L1:Dictionary; - private var §_-ee§:Dictionary; + private var name_ee:Dictionary; public function TextureResourceService(param1:GameKernel) { super(); this.gameKernel = param1; - this.§_-L1§ = new Dictionary(); - this.§_-ee§ = new Dictionary(); + this.name_L1 = new Dictionary(); + this.name_ee = 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.name_L1[param1]; if(_loc3_ == null && param2) { _loc3_ = new ATFTextureResource(param1); - this.§_-L1§[param1] = _loc3_; + this.name_L1[param1] = _loc3_; } return _loc3_; } private function getBitmapResourceSafe(param1:BitmapData, param2:Boolean) : BitmapTextureResource { - var _loc3_:BitmapTextureResource = this.§_-ee§[param1]; + var _loc3_:BitmapTextureResource = this.name_ee[param1]; if(_loc3_ == null && param2) { _loc3_ = new BitmapTextureResource(param1); - this.§_-ee§[param1] = _loc3_; + this.name_ee[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.name_9P = null; + this.name_bW = null; + this.name_ci = null; } public function getGenericTargetEvaluator() : IGenericTargetEvaluator { - if(this.§_-9P§ == null) + if(this.name_9P == null) { throw new Error("Generic target evaluator is not set"); } - return this.§_-9P§; + return this.name_9P; } public function setGenericTargetEvaluator(param1:IGenericTargetEvaluator) : void { - this.§_-9P§ = param1; + this.name_9P = param1; } public function getRailgunTargetEvaluator() : IRailgunTargetEvaluator { - if(this.§_-bW§ == null) + if(this.name_bW == null) { throw new Error("Railgun target evaluator is not set"); } - return this.§_-bW§; + return this.name_bW; } public function setRailgunTargetEvaluator(param1:IRailgunTargetEvaluator) : void { - this.§_-bW§ = param1; + this.name_bW = param1; } public function getFlamethrowerTargetEvaluator() : IGenericTargetEvaluator { - if(this.§_-ci§ == null) + if(this.name_ci == null) { throw new Error("Flame/freeze target evaluator is not set"); } - return this.§_-ci§; + return this.name_ci; } public function setFlamethrowerTargetEvaluator(param1:IGenericTargetEvaluator) : void { - this.§_-ci§ = param1; + this.name_ci = param1; } } } diff --git a/src/alternativa/tanks/config/BlobLibrary.as b/src/alternativa/tanks/config/BlobLibrary.as index 79dd9b5..b32a8e6 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 name_GF:Object; public function BlobLibrary() { super(); - this.§_-GF§ = new Object(); + this.name_GF = 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.name_GF) { _loc1_.push(_loc2_); } @@ -23,12 +23,12 @@ package alternativa.tanks.config public function getCategory(param1:String) : BlobCategory { - return this.§_-GF§[param1]; + return this.name_GF[param1]; } public function setCategory(param1:String, param2:BlobCategory) : void { - this.§_-GF§[param1] = param2; + this.name_GF[param1] = param2; } } } diff --git a/src/alternativa/tanks/config/Config.as b/src/alternativa/tanks/config/Config.as index 5fe917e..fca3386 100644 --- a/src/alternativa/tanks/config/Config.as +++ b/src/alternativa/tanks/config/Config.as @@ -16,21 +16,21 @@ package alternativa.tanks.config { public var mapData:ByteArrayMap; - public var §_-WX§:TextureLibrary; + public var name_WX:TextureLibrary; public var tankParts:TankPartsLibrary; public var soundsLibrary:SoundsLibrary; - public var §_-WG§:BlobLibrary = new BlobLibrary(); + public var name_WG:BlobLibrary = new BlobLibrary(); - private var §_-Qb§:XML; + private var name_Qb:XML; - private var §_-d5§:TaskSequence; + private var name_d5:TaskSequence; private var preloader:Preloader; - private var §_-D9§:Object = {}; + private var name_D9:Object = {}; public function Config() { @@ -40,27 +40,27 @@ package alternativa.tanks.config public function load(param1:String, param2:Preloader) : void { this.preloader = param2; - this.§_-d5§ = new TaskSequence(); + this.name_d5 = new TaskSequence(); var _loc3_:ConfigXMLLoader = new ConfigXMLLoader(param1,this); - this.§_-d5§.addTask(_loc3_); + this.name_d5.addTask(_loc3_); _loc3_.addEventListener(TaskEvent.TASK_COMPLETE,this.onTaskProgress); var _loc4_:BlobsLoaderTask = new BlobsLoaderTask(this); - this.§_-d5§.addTask(_loc4_); + this.name_d5.addTask(_loc4_); _loc4_.addEventListener(TaskEvent.TASK_PROGRESS,this.onTaskProgress); - this.§_-WX§ = new TextureLibrary(this); - this.§_-WX§.addEventListener(TaskEvent.TASK_PROGRESS,this.onTaskProgress); - this.§_-d5§.addTask(this.§_-WX§); + this.name_WX = new TextureLibrary(this); + this.name_WX.addEventListener(TaskEvent.TASK_PROGRESS,this.onTaskProgress); + this.name_d5.addTask(this.name_WX); var _loc5_:Task = this.createMapLoadTask(); - this.§_-d5§.addTask(_loc5_); + this.name_d5.addTask(_loc5_); _loc5_.addEventListener(TaskEvent.TASK_COMPLETE,this.onTaskProgress); this.tankParts = new TankPartsLibrary(this); this.tankParts.addEventListener(TaskEvent.TASK_PROGRESS,this.onTaskProgress); - this.§_-d5§.addTask(this.tankParts); + this.name_d5.addTask(this.tankParts); this.soundsLibrary = new SoundsLibrary(this); this.soundsLibrary.addEventListener(TaskEvent.TASK_PROGRESS,this.onTaskProgress); - this.§_-d5§.addTask(this.soundsLibrary); - this.§_-d5§.addEventListener(Event.COMPLETE,this.onSequenceComplete); - this.§_-d5§.run(); + this.name_d5.addTask(this.soundsLibrary); + this.name_d5.addEventListener(Event.COMPLETE,this.onSequenceComplete); + this.name_d5.run(); } private function onTaskProgress(param1:TaskEvent) : void @@ -75,18 +75,18 @@ package alternativa.tanks.config public function get xml() : XML { - return this.§_-Qb§; + return this.name_Qb; } public function set xml(param1:XML) : void { - this.§_-Qb§ = param1; + this.name_Qb = param1; this.parseOptions(); } public function get options() : Object { - return this.§_-D9§; + return this.name_D9; } public function clear() : void @@ -96,7 +96,7 @@ package alternativa.tanks.config { delete this.mapData.data[_loc1_]; } - this.§_-Qb§ = null; + this.name_Qb = null; this.mapData = null; } @@ -107,7 +107,7 @@ package alternativa.tanks.config private function onSequenceComplete(param1:Event) : void { - this.§_-d5§ = null; + this.name_d5 = null; dispatchEvent(new Event(Event.COMPLETE)); } @@ -120,9 +120,9 @@ package alternativa.tanks.config private function parseOptions() : void { var _loc1_:XML = null; - for each(_loc1_ in this.§_-Qb§.kernelOptions.option) + for each(_loc1_ in this.name_Qb.kernelOptions.option) { - this.§_-D9§[_loc1_.@name] = _loc1_.toString(); + this.name_D9[_loc1_.@name] = _loc1_.toString(); } } } @@ -135,6 +135,7 @@ import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.utils.ByteArray; +import alternativa.tanks.config.Config; class ConfigXMLLoader extends Task { diff --git a/src/alternativa/tanks/config/TankPartsLibrary.as b/src/alternativa/tanks/config/TankPartsLibrary.as index c37eb5e..b50b0f9 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 name_SB:Vector.; - private var §_-dl§:Vector.; + private var name_dl:Vector.; - private var §_-cy§:Vector.; + private var name_cy:Vector.; - private var §_-Ic§:TankPartsBatchLoader; + private var name_Ic:TankPartsBatchLoader; - private var §_-1D§:ImageSequenceLoader; + private var name_1D: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.name_SB.length; } public function getHull(param1:int) : TankHull { - return TankHull(this.§_-SB§[param1]); + return TankHull(this.name_SB[param1]); } public function getHullByID(param1:String) : TankHull { - return this.findPartByID(param1,this.§_-SB§) as TankHull; + return this.findPartByID(param1,this.name_SB) as TankHull; } public function getHullIndex(param1:String) : int { - return this.getPartIndex(param1,this.§_-SB§); + return this.getPartIndex(param1,this.name_SB); } public function get numTurrets() : int { - return this.§_-dl§.length; + return this.name_dl.length; } public function getTurret(param1:int) : TankTurret { - return TankTurret(this.§_-dl§[param1]); + return TankTurret(this.name_dl[param1]); } public function getTurretByID(param1:String) : TankTurret { - return this.findPartByID(param1,this.§_-dl§) as TankTurret; + return this.findPartByID(param1,this.name_dl) as TankTurret; } public function getTurretIndex(param1:String) : int { - return this.getPartIndex(param1,this.§_-dl§); + return this.getPartIndex(param1,this.name_dl); } public function get numColormaps() : int { - return this.§_-cy§.length; + return this.name_cy.length; } public function getColormap(param1:int) : BitmapData { - return this.§_-cy§[param1]; + return this.name_cy[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.name_Ic = new TankPartsBatchLoader(); + this.name_Ic.addEventListener(Event.COMPLETE,this.onHullsLoadingComplete); + this.name_Ic.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.name_Ic.removeEventListener(Event.COMPLETE,this.onHullsLoadingComplete); + this.name_SB = this.name_Ic.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.name_Ic.addEventListener(Event.COMPLETE,this.onTurretsLoadingComplete); + this.name_Ic.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.name_Ic.removeEventListener(Event.COMPLETE,this.onTurretsLoadingComplete); + this.name_dl = this.name_Ic.parts; + this.name_Ic = 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.name_1D = new ImageSequenceLoader(); + this.name_1D.addEventListener(Event.COMPLETE,this.onColormapsLoadingComplete); + this.name_1D.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.name_cy = this.name_1D.images; + this.name_1D.removeEventListener(Event.COMPLETE,this.onColormapsLoadingComplete); + this.name_1D = null; completeTask(); } diff --git a/src/alternativa/tanks/config/TextureLibrary.as b/src/alternativa/tanks/config/TextureLibrary.as index b84a668..9714d5f 100644 --- a/src/alternativa/tanks/config/TextureLibrary.as +++ b/src/alternativa/tanks/config/TextureLibrary.as @@ -9,9 +9,9 @@ package alternativa.tanks.config { private var textures:Object = {}; - private var §_-gh§:BitmapData; + private var name_gh:BitmapData; - private var §_-d5§:TaskSequence; + private var name_d5:TaskSequence; public function TextureLibrary(param1:Config) { @@ -33,24 +33,24 @@ package alternativa.tanks.config var _loc3_:XML = null; var _loc1_:XML = config.xml.textures[0]; var _loc2_:String = StringUtils.makeCorrectBaseUrl(_loc1_.@baseUrl); - this.§_-d5§ = new TaskSequence(); + this.name_d5 = new TaskSequence(); for each(_loc3_ in _loc1_.texture) { - this.§_-d5§.addTask(new TextureLoader(_loc3_.@id,_loc2_ + _loc3_.@url,this)); + this.name_d5.addTask(new TextureLoader(_loc3_.@id,_loc2_ + _loc3_.@url,this)); } - this.§_-d5§.addEventListener(TaskEvent.TASK_COMPLETE,this.onTaskComplete); - this.§_-d5§.addEventListener(Event.COMPLETE,this.onSequenceComplete); - this.§_-d5§.run(); + this.name_d5.addEventListener(TaskEvent.TASK_COMPLETE,this.onTaskComplete); + this.name_d5.addEventListener(Event.COMPLETE,this.onSequenceComplete); + this.name_d5.run(); } private function onTaskComplete(param1:TaskEvent) : void { - dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,this.§_-d5§.length)); + dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,this.name_d5.length)); } private function onSequenceComplete(param1:Event) : void { - this.§_-d5§ = null; + this.name_d5 = null; completeTask(); } @@ -60,24 +60,24 @@ package alternativa.tanks.config var _loc2_:uint = 0; var _loc3_:int = 0; var _loc4_:int = 0; - if(this.§_-gh§ == null) + if(this.name_gh == null) { _loc1_ = 128; _loc2_ = 16711935; - this.§_-gh§ = new BitmapData(_loc1_,_loc1_,false,0); + this.name_gh = 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.name_gh.setPixel(Boolean(_loc3_ % 2) ? _loc4_ : _loc4_ + 1,_loc3_,_loc2_); _loc4_ += 2; } _loc3_++; } } - return this.§_-gh§; + return this.name_gh; } } } @@ -91,6 +91,7 @@ import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.utils.ByteArray; +import alternativa.tanks.config.TextureLibrary; class TextureLoader extends Task { diff --git a/src/alternativa/tanks/config/loaders/BlobsLoaderTask.as b/src/alternativa/tanks/config/loaders/BlobsLoaderTask.as index a944dbd..56815b2 100644 --- a/src/alternativa/tanks/config/loaders/BlobsLoaderTask.as +++ b/src/alternativa/tanks/config/loaders/BlobsLoaderTask.as @@ -14,7 +14,7 @@ package alternativa.tanks.config.loaders { private var config:Config; - private var §_-d5§:TaskSequence; + private var name_d5:TaskSequence; public function BlobsLoaderTask(param1:Config) { @@ -32,7 +32,7 @@ package alternativa.tanks.config.loaders var _loc6_:XML = null; var _loc7_:String = null; var _loc8_:String = null; - this.§_-d5§ = new TaskSequence(); + this.name_d5 = new TaskSequence(); for each(_loc1_ in this.config.xml.elements("blobs").elements("blobs-category")) { _loc2_ = _loc1_.@id; @@ -44,27 +44,27 @@ package alternativa.tanks.config.loaders { _loc7_ = _loc6_.@id; _loc8_ = _loc5_ + _loc6_.@file; - this.§_-d5§.addTask(new BlobLoader(_loc2_,_loc4_,_loc7_,_loc8_,this)); + this.name_d5.addTask(new BlobLoader(_loc2_,_loc4_,_loc7_,_loc8_,this)); } } } - this.§_-d5§.addEventListener(TaskEvent.TASK_COMPLETE,this.onTaskComplete); - this.§_-d5§.addEventListener(Event.COMPLETE,this.onLoadingComplete); - this.§_-d5§.run(); + this.name_d5.addEventListener(TaskEvent.TASK_COMPLETE,this.onTaskComplete); + this.name_d5.addEventListener(Event.COMPLETE,this.onLoadingComplete); + this.name_d5.run(); } private function onTaskComplete(param1:TaskEvent) : void { - dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,this.§_-d5§.length)); + dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,this.name_d5.length)); } public function addBlob(param1:String, param2:String, param3:String, param4:ByteArray) : void { - var _loc5_:BlobCategory = this.config.§_-WG§.getCategory(param1); + var _loc5_:BlobCategory = this.config.name_WG.getCategory(param1); if(_loc5_ == null) { _loc5_ = new BlobCategory(); - this.config.§_-WG§.setCategory(param1,_loc5_); + this.config.name_WG.setCategory(param1,_loc5_); } var _loc6_:BlobGroup = _loc5_.getGroup(param2); if(_loc6_ == null) @@ -77,7 +77,7 @@ package alternativa.tanks.config.loaders private function onLoadingComplete(param1:Event) : void { - this.§_-d5§ = null; + this.name_d5 = null; completeTask(); } } @@ -89,6 +89,7 @@ import flash.events.EventDispatcher; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; +import alternativa.tanks.config.loaders.BlobsLoaderTask; class BlobLoader extends Task { diff --git a/src/alternativa/tanks/config/loaders/ImageSequenceLoader.as b/src/alternativa/tanks/config/loaders/ImageSequenceLoader.as index d46588c..25353a8 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 name_lW: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.name_lW = -1; this.images = new Vector.(); this.loadNextImage(); } private function loadNextImage() : void { - ++this.§_-lW§; - if(this.§_-lW§ == this.imagesXml.length()) + ++this.name_lW; + if(this.name_lW == 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.name_lW].@file)); } } diff --git a/src/alternativa/tanks/config/loaders/SoundsLibrary.as b/src/alternativa/tanks/config/loaders/SoundsLibrary.as index f360581..a601eca 100644 --- a/src/alternativa/tanks/config/loaders/SoundsLibrary.as +++ b/src/alternativa/tanks/config/loaders/SoundsLibrary.as @@ -12,7 +12,7 @@ package alternativa.tanks.config.loaders { private var sounds:Object = {}; - private var §_-d5§:TaskSequence; + private var name_d5:TaskSequence; public function SoundsLibrary(param1:Config) { @@ -39,24 +39,24 @@ package alternativa.tanks.config.loaders } var _loc1_:XML = config.xml.sounds[0]; var _loc2_:String = StringUtils.makeCorrectBaseUrl(_loc1_.@baseUrl); - this.§_-d5§ = new TaskSequence(); + this.name_d5 = new TaskSequence(); for each(_loc3_ in _loc1_.sound) { - this.§_-d5§.addTask(new SoundLoader(_loc3_.@id,_loc2_ + _loc3_.@file,this)); + this.name_d5.addTask(new SoundLoader(_loc3_.@id,_loc2_ + _loc3_.@file,this)); } - this.§_-d5§.addEventListener(TaskEvent.TASK_COMPLETE,this.onTaskComplete); - this.§_-d5§.addEventListener(Event.COMPLETE,this.onSequenceComplete); - this.§_-d5§.run(); + this.name_d5.addEventListener(TaskEvent.TASK_COMPLETE,this.onTaskComplete); + this.name_d5.addEventListener(Event.COMPLETE,this.onSequenceComplete); + this.name_d5.run(); } private function onTaskComplete(param1:TaskEvent) : void { - dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,this.§_-d5§.length)); + dispatchEvent(new TaskEvent(TaskEvent.TASK_PROGRESS,1,this.name_d5.length)); } private function onSequenceComplete(param1:Event) : void { - this.§_-d5§ = null; + this.name_d5 = null; completeTask(); } } @@ -67,6 +67,7 @@ import flash.events.Event; import flash.events.EventDispatcher; import flash.media.Sound; import flash.net.URLRequest; +import alternativa.tanks.config.loaders.SoundsLibrary; class SoundLoader extends Task { diff --git a/src/alternativa/tanks/config/loaders/TankPartsBatchLoader.as b/src/alternativa/tanks/config/loaders/TankPartsBatchLoader.as index 40c47ad..12b5b26 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 name_d5: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.name_d5 = new TaskSequence(); for each(_loc4_ in param2) { - this.§_-d5§.addTask(param3.createLoader(param1,_loc4_,this.parts)); + this.name_d5.addTask(param3.createLoader(param1,_loc4_,this.parts)); } - this.§_-d5§.addEventListener(Event.COMPLETE,this.onSequenceComplete); - this.§_-d5§.run(); + this.name_d5.addEventListener(Event.COMPLETE,this.onSequenceComplete); + this.name_d5.run(); } private function onSequenceComplete(param1:Event) : void { - this.§_-d5§ = null; + this.name_d5 = 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 b1ca66e..b5a9f9e 100644 --- a/src/alternativa/tanks/config/loaders/tankparts/TankHullLoader.as +++ b/src/alternativa/tanks/config/loaders/tankparts/TankHullLoader.as @@ -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,name_P9); } } } diff --git a/src/alternativa/tanks/config/loaders/tankparts/TankPartLoader.as b/src/alternativa/tanks/config/loaders/tankparts/TankPartLoader.as index 0df5772..1dacab2 100644 --- a/src/alternativa/tanks/config/loaders/tankparts/TankPartLoader.as +++ b/src/alternativa/tanks/config/loaders/tankparts/TankPartLoader.as @@ -10,11 +10,11 @@ package alternativa.tanks.config.loaders.tankparts { public var data:TankPart; - protected var §_-P9§:String; + protected var name_P9:String; private var files:ByteArrayMap; - private var §_-e2§:TaskSequence; + private var name_e2:TaskSequence; private var baseUrl:String; @@ -34,16 +34,16 @@ package alternativa.tanks.config.loaders.tankparts { var _loc2_:XML = null; this.files = new ByteArrayMap(); - this.§_-e2§ = new TaskSequence(); + this.name_e2 = new TaskSequence(); 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.name_P9 = "main." + this.partXML.modelFile[0].@type; + this.name_e2.addTask(new BlobLoadTask(this.name_P9,_loc1_,this.files)); for each(_loc2_ in this.partXML.texture) { - this.§_-e2§.addTask(new BlobLoadTask(_loc2_.@id,this.baseUrl + _loc2_.toString(),this.files)); + this.name_e2.addTask(new BlobLoadTask(_loc2_.@id,this.baseUrl + _loc2_.toString(),this.files)); } - this.§_-e2§.addEventListener(Event.COMPLETE,this.onTexturesLoadingComplete); - this.§_-e2§.run(); + this.name_e2.addEventListener(Event.COMPLETE,this.onTexturesLoadingComplete); + this.name_e2.run(); } public function parseModelData(param1:ByteArrayMap) : TankPart @@ -53,7 +53,7 @@ package alternativa.tanks.config.loaders.tankparts private function onTexturesLoadingComplete(param1:Event) : void { - this.§_-e2§ = null; + this.name_e2 = null; this.data = this.parseModelData(this.files); this.data.id = this.partXML.id; this.partsCollector.push(this.data); diff --git a/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as b/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as index bf9f1d6..a036e8f 100644 --- a/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as +++ b/src/alternativa/tanks/config/loaders/tankparts/TankTurretLoader.as @@ -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,name_P9); } } } diff --git a/src/alternativa/tanks/game/Entity.as b/src/alternativa/tanks/game/Entity.as index f4c8299..e90375d 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 name_3I:int; private var components:Vector.; - private var §_-ax§:Object; + private var name_ax:Object; internal var index:int = -1; public function Entity(id:int) { super(); - this.§_-3I§ = id; + this.name_3I = id; this.components = new Vector.(); - this.§_-ax§ = new Object(); + this.name_ax = 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.name_3I; } 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.name_ax[eventType]; if(listeners != null) { numListeners = uint(listeners.length); @@ -103,11 +103,11 @@ package alternativa.tanks.game public function addEventHandler(eventType:String, handler:Function) : void { - var handlers:Vector. = this.§_-ax§[eventType]; + var handlers:Vector. = this.name_ax[eventType]; if(handlers == null) { handlers = new Vector.(); - this.§_-ax§[eventType] = handlers; + this.name_ax[eventType] = handlers; } handlers.push(handler); } diff --git a/src/alternativa/tanks/game/GameKernel.as b/src/alternativa/tanks/game/GameKernel.as index d1d8061..eea4285 100644 --- a/src/alternativa/tanks/game/GameKernel.as +++ b/src/alternativa/tanks/game/GameKernel.as @@ -33,17 +33,17 @@ package alternativa.tanks.game public static const CLEANUP_SYSTEM_PRIORITY:int = 6000; - public const §_-PI§:TimeStat = new TimeStat(20); + public const name_PI:TimeStat = new TimeStat(20); - private var §_-We§:Stage; + private var name_We:Stage; - private var §_-D9§:Object; + private var name_D9:Object; - private var §_-IC§:IGameLogger = new DummyLogger(); + private var name_IC:IGameLogger = new DummyLogger(); - private var §_-Uw§:TaskManager; + private var name_Uw:TaskManager; - private var §_-f2§:TimeSystem; + private var name_f2:TimeSystem; private var inputSystem:InputSystem; @@ -57,43 +57,43 @@ package alternativa.tanks.game private var renderSystem:RenderSystem; - private var §_-0s§:DeferredCommandsSystem; + private var name_0s:DeferredCommandsSystem; - private var §_-jZ§:Vector.; + private var name_jZ:Vector.; - private var §_-TA§:int; + private var name_TA:int; - private var §_-XC§:ObjectPoolManager; + private var name_XC:ObjectPoolManager; public function GameKernel(stage:Stage, options:Object) { super(); - this.§_-We§ = stage; - this.§_-D9§ = options || {}; - this.§_-jZ§ = new Vector.(); - this.§_-XC§ = new ObjectPoolManager(); - this.§_-Uw§ = new TaskManager(); - this.§_-f2§ = new TimeSystem(TIME_SYSTEM_PRIORITY); - this.§_-Uw§.addTask(this.§_-f2§); + this.name_We = stage; + this.name_D9 = options || {}; + this.name_jZ = new Vector.(); + this.name_XC = new ObjectPoolManager(); + this.name_Uw = new TaskManager(); + this.name_f2 = new TimeSystem(TIME_SYSTEM_PRIORITY); + this.name_Uw.addTask(this.name_f2); this.inputSystem = new InputSystem(INPUT_SYSTEM_PRIORITY,stage); - this.§_-Uw§.addTask(this.inputSystem); + this.name_Uw.addTask(this.inputSystem); this.eventSystem = new EventSystem(EVENT_SYSTEM_PRIORITY); - this.§_-Uw§.addTask(this.eventSystem); + this.name_Uw.addTask(this.eventSystem); this.logicSystem1 = new LogicSystem(LOGIC_SYSTEM_1_PRIORITY,this); - this.§_-Uw§.addTask(this.logicSystem1); + this.name_Uw.addTask(this.logicSystem1); this.logicSystem2 = new LogicSystem(LOGIC_SYSTEM_2_PRIORITY,this); - this.§_-Uw§.addTask(this.logicSystem2); - this.physicsSystem = new PhysicsSystem(PHYSICS_SYSTEM_PRIORITY,this.§_-XC§); - this.§_-Uw§.addTask(this.physicsSystem); + this.name_Uw.addTask(this.logicSystem2); + this.physicsSystem = new PhysicsSystem(PHYSICS_SYSTEM_PRIORITY,this.name_XC); + this.name_Uw.addTask(this.physicsSystem); this.renderSystem = new RenderSystem(RENDER_SYSTEM_PRIORITY,stage); - this.§_-Uw§.addTask(this.renderSystem); - this.§_-0s§ = new DeferredCommandsSystem(CLEANUP_SYSTEM_PRIORITY); - this.§_-Uw§.addTask(this.§_-0s§); + this.name_Uw.addTask(this.renderSystem); + this.name_0s = new DeferredCommandsSystem(CLEANUP_SYSTEM_PRIORITY); + this.name_Uw.addTask(this.name_0s); } public function get logger() : IGameLogger { - return this.§_-IC§; + return this.name_IC; } public function set logger(value:IGameLogger) : void @@ -102,41 +102,41 @@ package alternativa.tanks.game { throw new ArgumentError("Logger is null"); } - this.§_-IC§ = value; + this.name_IC = value; } public function get stage() : Stage { - return this.§_-We§; + return this.name_We; } public function get options() : Object { - return this.§_-D9§; + return this.name_D9; } public function addDeferredCommand(command:DeferredCommand) : void { - this.§_-0s§.addCommand(command); + this.name_0s.addCommand(command); } public function getObjectPoolManager() : ObjectPoolManager { - return this.§_-XC§; + return this.name_XC; } public function addTask(gameTask:GameTask) : void { - this.§_-Uw§.addTask(gameTask); + this.name_Uw.addTask(gameTask); } public function addEntity(entity:Entity) : void { if(entity.index < 0) { - entity.index = this.§_-TA§; - var _loc2_:* = this.§_-TA§++; - this.§_-jZ§[_loc2_] = entity; + entity.index = this.name_TA; + var _loc2_:* = this.name_TA++; + this.name_jZ[_loc2_] = entity; entity.addToGame(this); return; } @@ -150,10 +150,10 @@ package alternativa.tanks.game { throw new Error("Entity " + entity + " is not in game"); } - var lastEntity:Entity = this.§_-jZ§[--this.§_-TA§]; + var lastEntity:Entity = this.name_jZ[--this.name_TA]; lastEntity.index = index; - this.§_-jZ§[index] = lastEntity; - this.§_-jZ§[this.§_-TA§] = null; + this.name_jZ[index] = lastEntity; + this.name_jZ[this.name_TA] = null; entity.index = -1; entity.removeFromGame(this); } @@ -190,19 +190,21 @@ package alternativa.tanks.game public function tick() : void { - this.§_-PI§.startTick(); - this.§_-Uw§.runTasks(); - this.§_-PI§.stopTick(); + this.name_PI.startTick(); + this.name_Uw.runTasks(); + this.name_PI.stopTick(); } public function shutdown() : void { - this.§_-Uw§.killAll(); - this.§_-Uw§.runTasks(); + this.name_Uw.killAll(); + this.name_Uw.runTasks(); } } } +import alternativa.tanks.game.IGameLogger; + class DummyLogger implements IGameLogger { public function DummyLogger() diff --git a/src/alternativa/tanks/game/GameTask.as b/src/alternativa/tanks/game/GameTask.as index e1a4eba..c721528 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 name_Uw:TaskManager; public var priority:int; - protected var §_-iS§:Boolean; + protected var name_iS: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.name_iS; } 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.name_iS) { - this.§_-iS§ = true; + this.name_iS = true; this.onPause(); } } final public function resume() : void { - if(this.§_-iS§) + if(this.name_iS) { - this.§_-iS§ = false; + this.name_iS = false; this.onResume(); } } diff --git a/src/alternativa/tanks/game/ObjectController.as b/src/alternativa/tanks/game/ObjectController.as index 4650c48..316cbc7 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 name_G7:Object3D; public function ObjectController() { @@ -20,64 +20,64 @@ package alternativa.tanks.game public function get object() : Object3D { - return this.§_-G7§; + return this.name_G7; } public function set object(value:Object3D) : void { - this.§_-G7§ = value; + this.name_G7 = value; } public function setPosition(x:Number, y:Number, z:Number) : void { - this.§_-G7§.x = x; - this.§_-G7§.y = y; - this.§_-G7§.z = z; + this.name_G7.x = x; + this.name_G7.y = y; + this.name_G7.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.name_G7.rotationX = rx; + this.name_G7.rotationY = ry; + this.name_G7.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.name_G7.rotationX,this.name_G7.rotationY,this.name_G7.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.name_G7.x += vector.x; + this.name_G7.y += vector.y; + this.name_G7.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.name_G7.x += dx; + this.name_G7.y += dy; + this.name_G7.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.name_G7.rotationX += rdx; + this.name_G7.rotationY += rdy; + this.name_G7.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.name_G7.x; + var dy:Number = y - this.name_G7.y; + var dz:Number = z - this.name_G7.z; + this.name_G7.rotationX = Math.atan2(dz,Math.sqrt(dx * dx + dy * dy)); + if(this.name_G7 is Camera3D) { - this.§_-G7§.rotationX -= 0.5 * Math.PI; + this.name_G7.rotationX -= 0.5 * Math.PI; } - this.§_-G7§.rotationY = 0; - this.§_-G7§.rotationZ = -Math.atan2(dx,dy); + this.name_G7.rotationY = 0; + this.name_G7.rotationZ = -Math.atan2(dx,dy); } } } diff --git a/src/alternativa/tanks/game/TaskManager.as b/src/alternativa/tanks/game/TaskManager.as index 946f66e..608dbb0 100644 --- a/src/alternativa/tanks/game/TaskManager.as +++ b/src/alternativa/tanks/game/TaskManager.as @@ -8,13 +8,13 @@ package alternativa.tanks.game public class TaskManager { - private var §_-AF§:List = new List(); + private var name_AF:List = new List(); - private var §_-Ey§:TaskArray = new TaskArray(); + private var name_Ey:TaskArray = new TaskArray(); - private var §_-4z§:TaskArray = new TaskArray(); + private var name_4z:TaskArray = new TaskArray(); - private var §_-TV§:Dictionary = new Dictionary(); + private var name_TV:Dictionary = new Dictionary(); public function TaskManager() { @@ -23,22 +23,22 @@ package alternativa.tanks.game public function addTask(task:GameTask) : void { - if(this.§_-AF§.contains(task)) + if(this.name_AF.contains(task)) { throw new Error("Task is already active"); } - if(this.§_-Ey§.contains(task)) + if(this.name_Ey.contains(task)) { throw new Error("Task has been already scheduled for addition"); } - this.§_-Ey§.add(task); + this.name_Ey.add(task); } public function killTask(task:GameTask) : void { - if(this.§_-AF§.contains(task) && !this.§_-4z§.contains(task)) + if(this.name_AF.contains(task) && !this.name_4z.contains(task)) { - this.§_-4z§.add(task); + this.name_4z.add(task); } } @@ -46,7 +46,7 @@ package alternativa.tanks.game { var task:GameTask = null; this.startAddedTasks(); - var iterator:ListIterator = this.§_-AF§.listIterator(); + var iterator:ListIterator = this.name_AF.listIterator(); while(iterator.hasNext()) { task = GameTask(iterator.next()); @@ -60,13 +60,13 @@ package alternativa.tanks.game public function getTaskInterface(taskInterface:Class) : Object { - return this.§_-TV§[taskInterface]; + return this.name_TV[taskInterface]; } public function killAll() : void { var task:GameTask = null; - var listIterator:ListIterator = this.§_-AF§.listIterator(); + var listIterator:ListIterator = this.name_AF.listIterator(); while(listIterator.hasNext()) { task = GameTask(listIterator.next()); @@ -81,17 +81,17 @@ package alternativa.tanks.game var taskInterface:Class = null; var activeTasksIterator:ListIterator = null; var activeTask:GameTask = null; - for(var i:int = 0; i < this.§_-Ey§.numTasks; i++) + for(var i:int = 0; i < this.name_Ey.numTasks; i++) { - task = this.§_-Ey§.tasks[i]; - task.§_-Uw§ = this; + task = this.name_Ey.tasks[i]; + task.name_Uw = this; task.start(); taskInterfaces = this.getObjectInterfaces(task); for each(taskInterface in taskInterfaces) { - this.§_-TV§[taskInterface] = task; + this.name_TV[taskInterface] = task; } - activeTasksIterator = this.§_-AF§.listIterator(); + activeTasksIterator = this.name_AF.listIterator(); while(activeTasksIterator.hasNext()) { activeTask = GameTask(activeTasksIterator.next()); @@ -103,7 +103,7 @@ package alternativa.tanks.game } activeTasksIterator.add(task); } - this.§_-Ey§.clear(); + this.name_Ey.clear(); } private function removeKilledTasks() : void @@ -111,19 +111,19 @@ package alternativa.tanks.game var task:GameTask = null; var taskInterfaces:Vector. = null; var taskInterface:Class = null; - for(var i:int = 0; i < this.§_-4z§.numTasks; i++) + for(var i:int = 0; i < this.name_4z.numTasks; i++) { - task = this.§_-4z§.tasks[i]; - this.§_-AF§.remove(task); + task = this.name_4z.tasks[i]; + this.name_AF.remove(task); task.stop(); taskInterfaces = this.getObjectInterfaces(task); for each(taskInterface in taskInterfaces) { - delete this.§_-TV§[taskInterface]; + delete this.name_TV[taskInterface]; } - task.§_-Uw§ = null; + task.name_Uw = null; } - this.§_-4z§.clear(); + this.name_4z.clear(); } private function getObjectInterfaces(object:Object) : Vector. @@ -142,6 +142,8 @@ package alternativa.tanks.game } } +import alternativa.tanks.game.GameTask; + class TaskArray { public var tasks:Vector. = new Vector.(); diff --git a/src/alternativa/tanks/game/camera/AxisIndicator.as b/src/alternativa/tanks/game/camera/AxisIndicator.as index 5682201..343ce4f 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 name_RS:int; private var axis:Vector. = Vector.([0,0,0,0,0,0]); public function AxisIndicator(size:int) { super(); - this.§_-RS§ = size; + this.name_RS = size; } public function update(camera:GameCamera) : void @@ -26,8 +26,8 @@ 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; - for(var i:int = 0,var bitOffset:int = 16; i < 6; i += 2,bitOffset -= 8) + var halfSize:int = this.name_RS / 2; + for(var i:int = 0, bitOffset:int = 16; i < 6; i += 2,bitOffset -= 8) { kx = this.axis[i] + 1; ky = this.axis[int(i + 1)] + 1; @@ -39,7 +39,7 @@ package alternativa.tanks.game.camera public function get size() : int { - return this.§_-RS§; + return this.name_RS; } } } diff --git a/src/alternativa/tanks/game/camera/FollowCameraController.as b/src/alternativa/tanks/game/camera/FollowCameraController.as index 1117806..6186552 100644 --- a/src/alternativa/tanks/game/camera/FollowCameraController.as +++ b/src/alternativa/tanks/game/camera/FollowCameraController.as @@ -83,9 +83,9 @@ package alternativa.tanks.game.camera private var collisionMask:int; - private var §_-U1§:Number = 0; + private var name_U1:Number = 0; - private var §_-7h§:Number = 0; + private var name_7h:Number = 0; private var locked:Boolean; @@ -97,25 +97,25 @@ package alternativa.tanks.game.camera private var targetDirection:Vector3 = new Vector3(); - private var §_-Wq§:Number = 0; + private var name_Wq:Number = 0; - private var §_-fq§:Number = 0; + private var name_fq:Number = 0; - private var §_-qF§:Number = 0; + private var name_qF:Number = 0; - private var §_-51§:Number = 10000000; + private var name_51:Number = 10000000; - private var §_-kz§:int; + private var name_kz:int; private var cameraPositionData:CameraPositionData = new CameraPositionData(); - private var §_-4G§:Number; + private var name_4G:Number; - private var §_-d9§:Number = 0; + private var name_d9:Number = 0; private var input:IInput; - private var §_-fZ§:Mesh; + private var name_fZ:Mesh; public function FollowCameraController(camera:GameCamera, collisionDetector:ICollisionDetector, collisionMask:int, input:IInput) { @@ -139,11 +139,11 @@ package alternativa.tanks.game.camera { if(target == null) { - this.§_-fZ§ = null; + this.name_fZ = null; } else { - this.§_-fZ§ = TurretGraphicsComponent(target.getComponentStrict(TurretGraphicsComponent)).turretMesh; + this.name_fZ = TurretGraphicsComponent(target.getComponentStrict(TurretGraphicsComponent)).turretMesh; } } @@ -161,7 +161,7 @@ package alternativa.tanks.game.camera { this.targetPosition.copy(targetPosition); this.targetDirection.copy(targetDirection); - this.§_-kz§ = 0; + this.name_kz = 0; this.getCameraPositionData(targetPosition,targetDirection,false,10000,this.cameraPositionData); this.position.copy(this.cameraPositionData.position); this.rotation.x = this.getPitchAngle(this.cameraPositionData) - 0.5 * Math.PI; @@ -178,7 +178,7 @@ package alternativa.tanks.game.camera public function update() : void { - if(this.§_-fZ§ == null) + if(this.name_fZ == null) { throw new Error("Target is not set"); } @@ -201,9 +201,9 @@ package alternativa.tanks.game.camera var positionError:Number = positionDelta.length(); if(positionError > maxPositionError) { - this.§_-Wq§ = this.getLinearSpeed(positionError - maxPositionError); + this.name_Wq = this.getLinearSpeed(positionError - maxPositionError); } - var distance:Number = this.§_-Wq§ * dt; + var distance:Number = this.name_Wq * dt; if(distance > positionError) { distance = positionError; @@ -214,22 +214,22 @@ package alternativa.tanks.game.camera var currentPitchAngle:Number = GameMathUtils.clampAngle(this.rotation.x + 0.5 * Math.PI); var currentYawAngle:Number = GameMathUtils.clampAngle(this.rotation.z); var pitchError:Number = GameMathUtils.clampAngleFast(targetPitchAngle - currentPitchAngle); - this.§_-fq§ = this.getAngularSpeed(pitchError,this.§_-fq§); - var deltaPitch:Number = this.§_-fq§ * dt; + this.name_fq = this.getAngularSpeed(pitchError,this.name_fq); + var deltaPitch:Number = this.name_fq * dt; if(pitchError > 0 && deltaPitch > pitchError || pitchError < 0 && deltaPitch < pitchError) { deltaPitch = pitchError; } var yawError:Number = GameMathUtils.clampAngleFast(targetYawAngle - currentYawAngle); - this.§_-qF§ = this.getAngularSpeed(yawError,this.§_-qF§); - var deltaYaw:Number = this.§_-qF§ * dt; + this.name_qF = this.getAngularSpeed(yawError,this.name_qF); + var deltaYaw:Number = this.name_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.name_Wq = this.each (this.name_Wq,0,camSpeedThreshold); + this.name_fq = this.each (this.name_fq,0,camSpeedThreshold); + this.name_qF = this.each (this.name_qF,0,camSpeedThreshold); this.position.add(positionDelta); this.rotation.x += deltaPitch; this.rotation.z += deltaYaw; @@ -246,16 +246,16 @@ package alternativa.tanks.game.camera public function get cameraHeight() : Number { - return this.§_-U1§; + return this.name_U1; } public function set cameraHeight(value:Number) : void { - this.§_-U1§ = GameMathUtils.clamp(value,MIN_HEIGHT,MAX_HEIGHT); - var d:Number = this.getCamDistance(this.§_-U1§); - this.§_-4G§ = Math.atan2(this.§_-U1§,d); - this.§_-7h§ = Math.sqrt(this.§_-U1§ * this.§_-U1§ + d * d); - this.§_-kz§ = 0; + this.name_U1 = GameMathUtils.clamp(value,MIN_HEIGHT,MAX_HEIGHT); + var d:Number = this.getCamDistance(this.name_U1); + this.name_4G = Math.atan2(this.name_U1,d); + this.name_7h = Math.sqrt(this.name_U1 * this.name_U1 + d * d); + this.name_kz = 0; } public function getCameraState(targetPosition:Vector3, targetDirection:Vector3, resultingPosition:Vector3, resultingAngles:Vector3) : void @@ -271,7 +271,7 @@ package alternativa.tanks.game.camera var angle:Number = NaN; var now:int = 0; var delta:Number = NaN; - var actualElevation:Number = this.§_-4G§; + var actualElevation:Number = this.name_4G; var xyLength:Number = Number(Math.sqrt(targetDirection.x * targetDirection.x + targetDirection.y * targetDirection.y)); if(xyLength < 0.00001) { @@ -285,7 +285,7 @@ package alternativa.tanks.game.camera } result.extraPitch = 0; result.t = 1; - var minCollisionDistance:Number = this.§_-7h§; + var minCollisionDistance:Number = this.name_7h; rayOrigin.copy(targetPosition); elevationAngles[0] = actualElevation; axis.x = flatDirection.y; @@ -295,28 +295,28 @@ package alternativa.tanks.game.camera { rotationMatrix.fromAxisAngle(axis,-angle); rotationMatrix.transformVector(flatDirection,rayDirection); - minCollisionDistance = this.getCollisionDistance(rayOrigin,rayDirection,this.§_-7h§,minCollisionDistance); + minCollisionDistance = this.getCollisionDistance(rayOrigin,rayDirection,this.name_7h,minCollisionDistance); } if(useReboundDelay) { now = int(getTimer()); - if(minCollisionDistance <= this.§_-51§ + 0.001) + if(minCollisionDistance <= this.name_51 + 0.001) { - this.§_-51§ = minCollisionDistance; - this.§_-kz§ = now; + this.name_51 = minCollisionDistance; + this.name_kz = now; } - else if(now - this.§_-kz§ < reboundDelay.value) + else if(now - this.name_kz < reboundDelay.value) { - minCollisionDistance = this.§_-51§; + minCollisionDistance = this.name_51; } else { - this.§_-51§ = minCollisionDistance; + this.name_51 = minCollisionDistance; } } - if(minCollisionDistance < this.§_-7h§) + if(minCollisionDistance < this.name_7h) { - result.t = minCollisionDistance / this.§_-7h§; + result.t = minCollisionDistance / this.name_7h; if(minCollisionDistance < MIN_DISTANCE) { rayOrigin.addScaled(minCollisionDistance,rayDirection); @@ -338,7 +338,7 @@ package alternativa.tanks.game.camera } else { - result.position.copy(rayOrigin).addScaled(this.§_-7h§,rayDirection); + result.position.copy(rayOrigin).addScaled(this.name_7h,rayDirection); } } @@ -366,8 +366,8 @@ package alternativa.tanks.game.camera private function updateTargetState() : void { - this.setMatrix(this.§_-fZ§.parent,parentMatrix); - this.setMatrix(this.§_-fZ§,matrix); + this.setMatrix(this.name_fZ.parent,parentMatrix); + this.setMatrix(this.name_fZ,matrix); matrix.append(parentMatrix); matrix.getAxis(3,this.targetPosition); this.targetDirection.reset(matrix.b,matrix.f,matrix.j); @@ -384,7 +384,7 @@ package alternativa.tanks.game.camera var heightChangeDir:int = this.input.getKeyState(KEY_CAMERA_UP) - this.input.getKeyState(KEY_CAMERA_DOWN); if(heightChangeDir != 0) { - this.cameraHeight = this.§_-U1§ + heightChangeDir * HEIGHT_CHANGE_STEP; + this.cameraHeight = this.name_U1 + heightChangeDir * HEIGHT_CHANGE_STEP; } } @@ -415,7 +415,7 @@ package alternativa.tanks.game.camera return currentSpeed; } - private function §each §(value:Number, snapValue:Number, epsilon:Number) : Number + private function each (value:Number, snapValue:Number, epsilon:Number) : Number { if(value > snapValue - epsilon && value < snapValue + epsilon) { @@ -426,7 +426,7 @@ package alternativa.tanks.game.camera private function getPitchAngle(cameraPositionData:CameraPositionData) : Number { - var angle:Number = this.§_-4G§ - fixedPitch.value; + var angle:Number = this.name_4G - fixedPitch.value; if(angle < 0) { angle = 0; @@ -436,7 +436,7 @@ package alternativa.tanks.game.camera { 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§))); + return cameraPositionData.extraPitch - Math.atan2(t * this.name_U1,pitchCorrectionCoeff.value * this.name_U1 * (1 / Math.tan(angle) - (1 - t) / Math.tan(this.name_4G))); } private function moveValueTowards(value:Number, targetValue:Number, delta:Number) : Number diff --git a/src/alternativa/tanks/game/camera/FreeCameraController.as b/src/alternativa/tanks/game/camera/FreeCameraController.as index 2eee923..0c42dc4 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 name_eX:Number = 0.01; - public var §_-ma§:Number = 0.01; + public var name_ma:Number = 0.01; public var speed:Number = 500; - public var §_-NF§:Number = 3; + public var name_NF:Number = 3; - private var §_-ls§:Number = 0; + private var name_ls:Number = 0; - private var §_-Z3§:Number = 0; + private var name_Z3: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 name_Kj: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.name_Z3 = camera.rotationX; + this.name_ls = 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.name_Z3 = object.rotationX; + this.name_ls = 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.name_Z3 = this.controller.object.rotationX; + this.name_ls = 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.name_eX; + pitch = -this.input.getMouseDeltaY() * this.name_ma; + this.name_ls += yaw; + this.name_Z3 += 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.name_Z3 - object.rotationX; + var drZ:Number = this.name_ls - 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.name_NF - 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.name_Kj.d - object.x; + dy = this.name_Kj.h - object.y; + dz = this.name_Kj.l - object.z; object.rotationX = Math.atan2(dz,Math.sqrt(dx * dx + dy * dy)) - 0.5 * Math.PI; object.rotationY = 0; object.rotationZ = -Math.atan2(dx,dy); @@ -192,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.name_Kj); + this.name_Kj.append(this.parentMatrix); } private function setMatrixFromObject(object:Object3D, matrix:Matrix4) : void diff --git a/src/alternativa/tanks/game/camera/OrbitCameraController.as b/src/alternativa/tanks/game/camera/OrbitCameraController.as index 171828e..19b6dd6 100644 --- a/src/alternativa/tanks/game/camera/OrbitCameraController.as +++ b/src/alternativa/tanks/game/camera/OrbitCameraController.as @@ -81,9 +81,9 @@ package alternativa.tanks.game.camera private var collisionMask:int; - private var §_-U1§:Number = 0; + private var name_U1:Number = 0; - private var §_-7h§:Number = 0; + private var name_7h:Number = 0; private var locked:Boolean; @@ -95,47 +95,47 @@ package alternativa.tanks.game.camera private var targetDirection:Vector3 = new Vector3(); - private var §_-Wq§:Number = 0; + private var name_Wq:Number = 0; - private var §_-fq§:Number = 0; + private var name_fq:Number = 0; - private var §_-qF§:Number = 0; + private var name_qF:Number = 0; - private var §_-51§:Number = 10000000; + private var name_51:Number = 10000000; - private var §_-kz§:int; + private var name_kz:int; private var cameraPositionData:CameraPositionData = new CameraPositionData(); - private var §_-4G§:Number; + private var name_4G:Number; private var input:IInput; - private var §_-fZ§:Mesh; + private var name_fZ:Mesh; - private var §_-LT§:Number = 0; + private var name_LT:Number = 0; - private var §_-mg§:Number = 0; + private var name_mg:Number = 0; - private var §_-R2§:Number = 1000; + private var name_R2:Number = 1000; - private var §_-Rb§:Number = 0; + private var name_Rb:Number = 0; - private var §_-NW§:Number = 0; + private var name_NW:Number = 0; - private var §_-1J§:Number = 1000; + private var name_1J:Number = 1000; public var smoothing:Number = 40; private var angles:Vector3 = new Vector3(); - private var §_-n9§:Vector3 = new Vector3(); + private var name_n9:Vector3 = new Vector3(); private var rotationMatrix:Matrix4 = new Matrix4(); - private var §_-Ys§:Matrix4 = new Matrix4(); + private var name_Ys:Matrix4 = new Matrix4(); - private var §_-b4§:Vector3 = new Vector3(); + private var name_b4:Vector3 = new Vector3(); public function OrbitCameraController(camera:GameCamera, collisionDetector:ICollisionDetector, collisionMask:int, input:IInput) { @@ -159,17 +159,17 @@ package alternativa.tanks.game.camera { if(target == null) { - this.§_-fZ§ = null; + this.name_fZ = null; } else { - this.§_-fZ§ = TurretGraphicsComponent(target.getComponentStrict(TurretGraphicsComponent)).turretMesh; + this.name_fZ = TurretGraphicsComponent(target.getComponentStrict(TurretGraphicsComponent)).turretMesh; } } public function update() : void { - if(this.§_-fZ§ == null) + if(this.name_fZ == null) { throw new Error("Target is not set"); } @@ -183,62 +183,62 @@ package alternativa.tanks.game.camera dt = 0.1; } this.updateTargetState(); - matrix.transformPoint(targetOffset,this.§_-n9§); + matrix.transformPoint(targetOffset,this.name_n9); var distanceChangeDir:int = this.input.getKeyState(KEY_CAMERA_UP) - this.input.getKeyState(KEY_CAMERA_DOWN) - this.input.getMouseWheelDelta(); if(distanceChangeDir != 0) { - this.§_-1J§ *= Math.pow(10,distanceChangeDir * 0.02); + this.name_1J *= Math.pow(10,distanceChangeDir * 0.02); } if(this.input.mouseButtonPressed()) { - this.§_-Rb§ -= this.input.getMouseDeltaY() * 0.01; - this.§_-NW§ -= this.input.getMouseDeltaX() * 0.01; + this.name_Rb -= this.input.getMouseDeltaY() * 0.01; + this.name_NW -= this.input.getMouseDeltaX() * 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; + this.name_LT += (this.name_Rb - this.name_LT) * k; + this.name_mg += (this.name_NW - this.name_mg) * k; } else { - this.§_-LT§ = this.§_-Rb§; - this.§_-mg§ = this.§_-NW§; + this.name_LT = this.name_Rb; + this.name_mg = this.name_NW; } - this.rotationMatrix.setRotationMatrix(this.§_-LT§,0,this.§_-mg§); + this.rotationMatrix.setRotationMatrix(this.name_LT,0,this.name_mg); this.rotationMatrix.setPositionXYZ(matrix.d,matrix.h,matrix.l); matrix.getAxis(3,rayOrigin); this.rotationMatrix.transformVector(Vector3.Y_AXIS,rayDirection); rayDirection.reverse(); - var distance:Number = this.§_-1J§; + var distance:Number = this.name_1J; if(this.collisionDetector.raycast(rayOrigin,rayDirection,this.collisionMask,distance,null,rayHit)) { distance = rayHit.t - COLLISION_OFFSET; } if(distanceChangeDir != 0) { - this.§_-1J§ = distance; + this.name_1J = distance; } if(this.smoothing > 0) { - this.§_-R2§ += (distance - this.§_-R2§) * k; + this.name_R2 += (distance - this.name_R2) * k; } else { - this.§_-R2§ = distance; + this.name_R2 = distance; } this.position.x = 0; - this.position.y = -this.§_-R2§; + this.position.y = -this.name_R2; this.position.z = 0; this.rotationMatrix.transformPoint(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; + var dx:Number = this.name_n9.x - camera.x; + var dy:Number = this.name_n9.y - camera.y; + var dz:Number = this.name_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); @@ -246,11 +246,11 @@ package alternativa.tanks.game.camera private function set cameraHeight(value:Number) : void { - this.§_-U1§ = GameMathUtils.clamp(value,MIN_HEIGHT,MAX_HEIGHT); - var d:Number = this.getCamDistance(this.§_-U1§); - this.§_-4G§ = Math.atan2(this.§_-U1§,d); - this.§_-7h§ = Math.sqrt(this.§_-U1§ * this.§_-U1§ + d * d); - this.§_-kz§ = 0; + this.name_U1 = GameMathUtils.clamp(value,MIN_HEIGHT,MAX_HEIGHT); + var d:Number = this.getCamDistance(this.name_U1); + this.name_4G = Math.atan2(this.name_U1,d); + this.name_7h = Math.sqrt(this.name_U1 * this.name_U1 + d * d); + this.name_kz = 0; } private function getCameraPositionData(targetPosition:Vector3, targetDirection:Vector3, useReboundDelay:Boolean, dt:Number, result:CameraPositionData) : void @@ -258,7 +258,7 @@ package alternativa.tanks.game.camera var angle:Number = NaN; var now:int = 0; var delta:Number = NaN; - var actualElevation:Number = this.§_-4G§; + var actualElevation:Number = this.name_4G; var xyLength:Number = Number(Math.sqrt(targetDirection.x * targetDirection.x + targetDirection.y * targetDirection.y)); if(xyLength < 0.00001) { @@ -272,7 +272,7 @@ package alternativa.tanks.game.camera } result.extraPitch = 0; result.t = 1; - var minCollisionDistance:Number = this.§_-7h§; + var minCollisionDistance:Number = this.name_7h; rayOrigin.copy(targetPosition); elevationAngles[0] = actualElevation; axis.x = flatDirection.y; @@ -282,28 +282,28 @@ package alternativa.tanks.game.camera { this.rotationMatrix.fromAxisAngle(axis,-angle); this.rotationMatrix.transformVector(flatDirection,rayDirection); - minCollisionDistance = this.getMinCollisionDistance(rayOrigin,rayDirection,this.§_-7h§,minCollisionDistance); + minCollisionDistance = this.getMinCollisionDistance(rayOrigin,rayDirection,this.name_7h,minCollisionDistance); } if(useReboundDelay) { now = int(getTimer()); - if(minCollisionDistance <= this.§_-51§ + 0.001) + if(minCollisionDistance <= this.name_51 + 0.001) { - this.§_-51§ = minCollisionDistance; - this.§_-kz§ = now; + this.name_51 = minCollisionDistance; + this.name_kz = now; } - else if(now - this.§_-kz§ < reboundDelay.value) + else if(now - this.name_kz < reboundDelay.value) { - minCollisionDistance = this.§_-51§; + minCollisionDistance = this.name_51; } else { - this.§_-51§ = minCollisionDistance; + this.name_51 = minCollisionDistance; } } - if(minCollisionDistance < this.§_-7h§) + if(minCollisionDistance < this.name_7h) { - result.t = minCollisionDistance / this.§_-7h§; + result.t = minCollisionDistance / this.name_7h; if(minCollisionDistance < MIN_DISTANCE) { rayOrigin.addScaled(minCollisionDistance,rayDirection); @@ -325,7 +325,7 @@ package alternativa.tanks.game.camera } else { - result.position.copy(rayOrigin).addScaled(this.§_-7h§,rayDirection); + result.position.copy(rayOrigin).addScaled(this.name_7h,rayDirection); } } @@ -353,8 +353,8 @@ package alternativa.tanks.game.camera private function updateTargetState() : void { - this.setMatrixFromObject(this.§_-fZ§.parent,parentMatrix); - this.setMatrixFromObject(this.§_-fZ§,matrix); + this.setMatrixFromObject(this.name_fZ.parent,parentMatrix); + this.setMatrixFromObject(this.name_fZ,matrix); matrix.append(parentMatrix); matrix.getAxis(3,this.targetPosition); this.targetDirection.reset(matrix.b,matrix.f,matrix.j); @@ -371,7 +371,7 @@ package alternativa.tanks.game.camera var heightChangeDir:int = this.input.getKeyState(KEY_CAMERA_UP) - this.input.getKeyState(KEY_CAMERA_DOWN); if(heightChangeDir != 0) { - this.cameraHeight = this.§_-U1§ + heightChangeDir * HEIGHT_CHANGE_STEP; + this.cameraHeight = this.name_U1 + heightChangeDir * HEIGHT_CHANGE_STEP; } } @@ -400,7 +400,7 @@ package alternativa.tanks.game.camera return currentSpeed; } - private function §each §(value:Number, snapValue:Number, epsilon:Number) : Number + private function each (value:Number, snapValue:Number, epsilon:Number) : Number { if(value > snapValue - epsilon && value < snapValue + epsilon) { @@ -411,7 +411,7 @@ package alternativa.tanks.game.camera private function getPitchAngle(cameraPositionData:CameraPositionData) : Number { - var angle:Number = this.§_-4G§ - fixedPitch.value; + var angle:Number = this.name_4G - fixedPitch.value; if(angle < 0) { angle = 0; @@ -421,7 +421,7 @@ package alternativa.tanks.game.camera { 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§))); + return cameraPositionData.extraPitch - Math.atan2(t * this.name_U1,pitchCorrectionCoeff.value * this.name_U1 * (1 / Math.tan(angle) - (1 - t) / Math.tan(this.name_4G))); } } } diff --git a/src/alternativa/tanks/game/effects/AnimatedPlaneEffect.as b/src/alternativa/tanks/game/effects/AnimatedPlaneEffect.as index fe63da0..28c3ea5 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 name_5m: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.name_5m = 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.name_5m >= this.numFrames) { return false; } - this.plane.setMaterialToAllSurfaces(this.frames[int(this.§_-5m§)]); + this.plane.setMaterialToAllSurfaces(this.frames[int(this.name_5m)]); 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.name_5m += 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..3675da7 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 name_iD: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.name_iD = 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.name_iD * 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..eee013d 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 name_Jr:Number; - private var §_-KH§:int; + private var name_KH:int; - private var §_-EE§:int; + private var name_EE: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.name_Jr = maxValue - minValue; } public function init(now:int) : void { this.value = this.maxValue; - this.§_-EE§ = this.initialInterval; + this.name_EE = this.initialInterval; this.speed = this.getSpeed(-1); - this.§_-KH§ = now + this.§_-EE§; + this.name_KH = now + this.name_EE; } 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.name_Jr = 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.name_Jr = 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.name_KH) { - if(this.§_-EE§ > this.minInterval) + if(this.name_EE > this.minInterval) { - this.§_-EE§ -= this.intervalDecrement; - if(this.§_-EE§ < this.minInterval) + this.name_EE -= this.intervalDecrement; + if(this.name_EE < this.minInterval) { - this.§_-EE§ = this.minInterval; + this.name_EE = this.minInterval; } } - this.§_-KH§ = now + this.§_-EE§; + this.name_KH = now + this.name_EE; 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.name_Jr / this.name_EE; } } } diff --git a/src/alternativa/tanks/game/effects/Fire.as b/src/alternativa/tanks/game/effects/Fire.as index 89c36bf..7575ff8 100644 --- a/src/alternativa/tanks/game/effects/Fire.as +++ b/src/alternativa/tanks/game/effects/Fire.as @@ -85,7 +85,7 @@ package alternativa.tanks.game.effects particleSystem.each(newFire); },(live - 5 * ft) * 1000); } - setLife(§_-gV§[§_-kf§ - 1] + smokePrototype.lifeTime); + setLife(name_gV[name_kf - 1] + smokePrototype.lifeTime); } private function keyFrame1(keyTime:Number, time:Number) : void diff --git a/src/alternativa/tanks/game/effects/MovingAnimatedSprite.as b/src/alternativa/tanks/game/effects/MovingAnimatedSprite.as index 6ec0c03..3f69308 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 name_iD: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.name_iD = 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.name_iD * TimeSystem.timeDelta; if(this.loop) { while(this.currFrame >= this.numFrames) diff --git a/src/alternativa/tanks/game/effects/SimpleWeaponShotSFXComponent.as b/src/alternativa/tanks/game/effects/SimpleWeaponShotSFXComponent.as index a211517..8a5ae12 100644 --- a/src/alternativa/tanks/game/effects/SimpleWeaponShotSFXComponent.as +++ b/src/alternativa/tanks/game/effects/SimpleWeaponShotSFXComponent.as @@ -61,6 +61,7 @@ import alternativa.tanks.game.subsystems.timesystem.TimeSystem; import alternativa.tanks.game.utils.SFXUtils; import alternativa.tanks.game.utils.objectpool.ObjectPool; import alternativa.tanks.game.utils.objectpool.PooledObject; +import alternativa.tanks.game.effects.Plane; use namespace alternativa3d; @@ -85,7 +86,7 @@ class SimpleWeaponShotEffect extends PooledObject implements IGraphicEffect super(objectPool); this.mesh = new Plane(40,250,0,250 / 2); this.material = new TextureMaterial(); - this.material.§_-L4§ = true; + this.material.name_L4 = true; this.mesh.setMaterialToAllSurfaces(this.material); } diff --git a/src/alternativa/tanks/game/effects/debug/FloatingTextEffect.as b/src/alternativa/tanks/game/effects/debug/FloatingTextEffect.as index 443129a..8e26cd6 100644 --- a/src/alternativa/tanks/game/effects/debug/FloatingTextEffect.as +++ b/src/alternativa/tanks/game/effects/debug/FloatingTextEffect.as @@ -22,26 +22,26 @@ package alternativa.tanks.game.effects.debug private var messageLifeTime:int; - private var §_-cd§:Vector.; + private var name_cd:Vector.; private var anchor:Object3D; - private var §_-1R§:DisplayObjectContainer; + private var name_1R:DisplayObjectContainer; - private var §_-Cx§:Function; + private var name_Cx:Function; public function FloatingTextEffect(objectPool:ObjectPool) { super(objectPool); - this.§_-cd§ = new Vector.(); - this.§_-1R§ = new Sprite(); + this.name_cd = new Vector.(); + this.name_1R = new Sprite(); } public function init(messageLifeTime:int, anchor:Object3D, destuctionCallback:Function) : void { this.messageLifeTime = messageLifeTime; this.anchor = anchor; - this.§_-Cx§ = destuctionCallback; + this.name_Cx = destuctionCallback; } public function addMessage(text:String, color:uint) : void @@ -50,13 +50,13 @@ package alternativa.tanks.game.effects.debug message.color = color; message.text = text; message.lifeTime = 0; - this.§_-cd§.push(message); - this.§_-1R§.addChild(message); + this.name_cd.push(message); + this.name_1R.addChild(message); } public function addedToRenderSystem(system:RenderSystem) : void { - system.getOverlay("debug_messages").addChild(this.§_-1R§); + system.getOverlay("debug_messages").addChild(this.name_1R); } public function play(camera:GameCamera) : Boolean @@ -64,19 +64,19 @@ package alternativa.tanks.game.effects.debug var i:int = 0; var message:Message = null; var timeDelta:int = TimeSystem.timeDelta; - for(i = 0; i < this.§_-cd§.length; ) + for(i = 0; i < this.name_cd.length; ) { - message = this.§_-cd§[i]; + message = this.name_cd[i]; message.lifeTime += timeDelta; if(message.lifeTime >= this.messageLifeTime) { message.destroy(); - this.§_-cd§.shift(); + this.name_cd.shift(); i--; } i++; } - if(this.§_-cd§.length == 0) + if(this.name_cd.length == 0) { return false; } @@ -88,18 +88,18 @@ package alternativa.tanks.game.effects.debug 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.name_1R.visible = true; + this.name_1R.x = int(vector2.x); + this.name_1R.y = int(vector2.y); } else { - this.§_-1R§.visible = false; + this.name_1R.visible = false; } var messageY:int = 0; - for(i = this.§_-cd§.length - 1; i >= 0; i--) + for(i = this.name_cd.length - 1; i >= 0; i--) { - message = this.§_-cd§[i]; + message = this.name_cd[i]; message.y = messageY; message.x = -int(message.textWidth / 2); messageY -= 20; @@ -111,19 +111,19 @@ package alternativa.tanks.game.effects.debug { var message:Message = null; var func:Function = null; - if(this.§_-1R§.parent != null) + if(this.name_1R.parent != null) { - this.§_-1R§.parent.removeChild(this.§_-1R§); + this.name_1R.parent.removeChild(this.name_1R); } - for each(message in this.§_-cd§) + for each(message in this.name_cd) { message.destroy(); } - this.§_-cd§.length = 0; - if(this.§_-Cx§ != null) + this.name_cd.length = 0; + if(this.name_Cx != null) { - func = this.§_-Cx§; - this.§_-Cx§ = null; + func = this.name_Cx; + this.name_Cx = null; func.call(); } } diff --git a/src/alternativa/tanks/game/entities/EventStates.as b/src/alternativa/tanks/game/entities/EventStates.as index 5fd27d9..cbe0589 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_Ah:IComponentState; - private var §_-eB§:Object; + private var name_eB:Object; public function EventStates() { super(); - this.§_-eB§ = new Object(); + this.name_eB = new Object(); } public function setEventState(entity:Entity, eventType:String, eventState:IComponentState) : void { - if(this.§_-eB§[eventType] != null) + if(this.name_eB[eventType] != null) { throw new Error("Duplicate event type: " + eventType); } - this.§_-eB§[eventType] = eventState; + this.name_eB[eventType] = eventState; entity.addEventHandler(eventType,this.onEvent); } public function onEvent(eventName:String, data:*) : void { - var newState:IComponentState = this.§_-eB§[eventName]; - if(newState != this.§_-Ah§) + var newState:IComponentState = this.name_eB[eventName]; + if(newState != this.name_Ah) { - this.§_-Ah§.stop(); - this.§_-Ah§ = newState; - this.§_-Ah§.start(data); + this.name_Ah.stop(); + this.name_Ah = newState; + this.name_Ah.start(data); } } } diff --git a/src/alternativa/tanks/game/entities/map/A3DMapBuilder.as b/src/alternativa/tanks/game/entities/map/A3DMapBuilder.as index eabe9eb..0aefb00 100644 --- a/src/alternativa/tanks/game/entities/map/A3DMapBuilder.as +++ b/src/alternativa/tanks/game/entities/map/A3DMapBuilder.as @@ -50,21 +50,21 @@ package alternativa.tanks.game.entities.map private static var fakeBumpTextureResource:BitmapTextureResource = new BitmapTextureResource(new BitmapData(1,1,false,8355839)); - private var §_-Kq§:Vector. = new Vector.(); + private var name_Kq:Vector. = new Vector.(); - private var §_-73§:Vector.; + private var name_73:Vector.; - private var §_-9k§:Vector.; + private var name_9k:Vector.; - private var §_-Gv§:Vector. = new Vector.(); + private var name_Gv:Vector. = new Vector.(); - private var §_-ah§:TaskSequence; + private var name_ah:TaskSequence; private var mapFiles:ByteArrayMap; private var collector:Vector.; - private var §_-TE§:BitmapCubeTextureResource = new BitmapCubeTextureResource(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)); + private var name_TE:BitmapCubeTextureResource = new BitmapCubeTextureResource(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() { @@ -73,22 +73,22 @@ package alternativa.tanks.game.entities.map public function get objects() : Vector. { - return this.§_-Kq§; + return this.name_Kq; } public function get collisionPrimitives() : Vector. { - return this.§_-73§; + return this.name_73; } public function get lights() : Vector. { - return this.§_-9k§; + return this.name_9k; } public function get decals() : Vector. { - return this.§_-Gv§; + return this.name_Gv; } public function buildMap(mapFiles:ByteArrayMap) : void @@ -97,13 +97,13 @@ package alternativa.tanks.game.entities.map this.mapFiles = mapFiles; var mapGeometryFiles:Vector. = this.getMapGeometryFiles(mapFiles); this.collector = new Vector.(); - this.§_-ah§ = new TaskSequence(); + this.name_ah = new TaskSequence(); for each(geometryFileName in mapGeometryFiles) { - this.§_-ah§.addTask(new GeometryBuildTask(mapFiles.getValue(geometryFileName),this.collector)); + this.name_ah.addTask(new GeometryBuildTask(mapFiles.getValue(geometryFileName),this.collector)); } - this.§_-ah§.addEventListener(Event.COMPLETE,this.onGeometryComplete); - this.§_-ah§.run(); + this.name_ah.addEventListener(Event.COMPLETE,this.onGeometryComplete); + this.name_ah.run(); } private function onGeometryComplete(event:Event) : void @@ -126,24 +126,24 @@ package alternativa.tanks.game.entities.map 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) + decal.name_eW = mesh.name_eW; + decal.name_Oy = mesh.name_Oy; + for each(surface in decal.name_eW) { surface.alternativa3d::object = decal; } decal.boundBox = mesh.boundBox; decal.matrix = mesh.matrix; mesh = decal; - this.§_-Gv§.push(decal); + this.name_Gv.push(decal); } mesh.calculateBoundBox(); this.setupMaterials(mesh,resourceCache); - this.§_-Kq§.push(mesh); + this.name_Kq.push(mesh); } } this.collector = null; - this.§_-ah§ = null; + this.name_ah = null; this.parseTrees(this.mapFiles.getValue(TREES_FILE)); this.parseReflections(this.mapFiles.getValue(MARKET_FILE)); this.parseBeams(this.mapFiles.getValue(BEAMS_FILE)); @@ -192,7 +192,7 @@ package alternativa.tanks.game.entities.map if(diffName.indexOf("vetrino01") >= 0) { reflection = this.getCompressedTextureResource(new ExternalTextureResource("vetrino_rfl.atf"),resourceCache,this.mapFiles); - envMaterial = new EnviromentMaterial(diffuse,this.§_-TE§,null,reflection,emission,opacity); + envMaterial = new EnviromentMaterial(diffuse,this.name_TE,null,reflection,emission,opacity); envMaterial.reflection = 0.4; surface.material = envMaterial; } @@ -203,7 +203,7 @@ package alternativa.tanks.game.entities.map } i++; } - this.§_-Kq§.push(mesh); + this.name_Kq.push(mesh); } } } @@ -217,7 +217,7 @@ package alternativa.tanks.game.entities.map var emissionTextureResource:TextureResource = null; var opacityTextureResource:TextureResource = null; var material:MapMaterial = null; - for each(surface in mesh.alternativa3d::_-eW) + for each(surface in mesh.name_eW) { parserMaterial = surface.material as ParserMaterial; if(parserMaterial != null) @@ -286,13 +286,13 @@ package alternativa.tanks.game.entities.map bump = this.getCompressedTextureResource(material.textures["bump"],resourceCache,this.mapFiles); opacity = this.getCompressedTextureResource(material.textures["transparent"],resourceCache,this.mapFiles); trMaterial = new TreesMaterial(diffuse,fakeBumpTextureResource,null,null,opacity); - trMaterial.§_-kj§ = 0; + trMaterial.name_kj = 0; trMaterial.alphaThreshold = 0.2; surface.material = trMaterial; } i++; } - this.§_-Kq§.push(mesh); + this.name_Kq.push(mesh); } } } @@ -331,7 +331,7 @@ package alternativa.tanks.game.entities.map } i++; } - this.§_-Kq§.push(mesh); + this.name_Kq.push(mesh); } } } @@ -346,11 +346,11 @@ package alternativa.tanks.game.entities.map parserCollada = new ParserCollada(); parserCollada.parse(XML(lightsData.toString())); numLights = uint(parserCollada.lights.length); - this.§_-9k§ = new Vector.(numLights); + this.name_9k = new Vector.(numLights); for(i = 0; i < numLights; i++) { - this.§_-9k§[i] = parserCollada.lights[i]; - Light3D(this.§_-9k§[i]).alternativa3d::removeFromParent(); + this.name_9k[i] = parserCollada.lights[i]; + Light3D(this.name_9k[i]).alternativa3d::removeFromParent(); } } } @@ -387,7 +387,7 @@ package alternativa.tanks.game.entities.map var objectName:String = null; var parserA3D:ParserA3D = new ParserA3D(); parserA3D.parse(a3dData); - this.§_-73§ = new Vector.(); + this.name_73 = new Vector.(); for each(object in parserA3D.objects) { if(object is Mesh) @@ -395,15 +395,15 @@ package alternativa.tanks.game.entities.map objectName = object.name.toLowerCase(); if(objectName.indexOf("tri") == 0) { - PhysicsParsingUtils.parseCollisionTriangles(Mesh(object),this.§_-73§,CollisionGroup.STATIC,COLLISION_MASK); + PhysicsParsingUtils.parseCollisionTriangles(Mesh(object),this.name_73,CollisionGroup.STATIC,COLLISION_MASK); } else if(objectName.indexOf("box") == 0) { - PhysicsParsingUtils.parseBox(Mesh(object),this.§_-73§,CollisionGroup.STATIC,COLLISION_MASK); + PhysicsParsingUtils.parseBox(Mesh(object),this.name_73,CollisionGroup.STATIC,COLLISION_MASK); } else if(objectName.indexOf("plane") == 0) { - PhysicsParsingUtils.parsePlane(Mesh(object),this.§_-73§,CollisionGroup.STATIC,COLLISION_MASK); + PhysicsParsingUtils.parsePlane(Mesh(object),this.name_73,CollisionGroup.STATIC,COLLISION_MASK); } } } diff --git a/src/alternativa/tanks/game/entities/map/A3DMapComponent.as b/src/alternativa/tanks/game/entities/map/A3DMapComponent.as index 13270f8..b6f62b2 100644 --- a/src/alternativa/tanks/game/entities/map/A3DMapComponent.as +++ b/src/alternativa/tanks/game/entities/map/A3DMapComponent.as @@ -53,15 +53,15 @@ package alternativa.tanks.game.entities.map private var skyboxSize:Number; - private var §_-Zy§:A3DMapBuilder; + private var name_Zy:A3DMapBuilder; private var gameKernel:GameKernel; - private var §_-9h§:Number = 1.5; + private var name_9h:Number = 1.5; private var listener:IA3DMapComponentListener; - private var §_-RZ§:Boolean = true; + private var name_RZ: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.name_Zy.objects) { mapGeometryContainer.removeChild(object); } renderSystem.releaseResources(mapGeometryContainer.getResources(true)); lights = renderSystem.lights; - for each(light in this.§_-Zy§.lights) + for each(light in this.name_Zy.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.name_Zy = new A3DMapBuilder(); + this.name_Zy.addEventListener(Event.COMPLETE,this.onBuildingComplete); + this.name_Zy.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.name_Zy.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.name_Zy.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.name_Zy.collisionPrimitives); if(this.gameKernel.options[MapOptions.VISUALIZE_PHYSICS] != null) { renderSystem = this.gameKernel.getRenderSystem(); - physicsContainer = this.createPhysicsVisualObjects(this.§_-Zy§.collisionPrimitives); + physicsContainer = this.createPhysicsVisualObjects(this.name_Zy.collisionPrimitives); physicsContainer.visible = false; renderSystem.addContainer(PHYSICS_GEOMETRY,physicsContainer,true); } @@ -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.name_RZ = !this.name_RZ; + for each(d in this.name_Zy.decals) { - d.visible = this.§_-RZ§; + d.visible = this.name_RZ; } } private function get decalsOffset() : Number { - return this.§_-9h§; + return this.name_9h; } private function set decalsOffset(value:Number) : void { var decal:Decal = null; - this.§_-9h§ = value; - for each(decal in this.§_-Zy§.decals) + this.name_9h = value; + for each(decal in this.name_Zy.decals) { - decal.offset = this.§_-9h§; + decal.offset = this.name_9h; } - IConsole(OSGi.getInstance().getService(IConsole)).addText("Decals offset: " + this.§_-9h§); + IConsole(OSGi.getInstance().getService(IConsole)).addText("Decals offset: " + this.name_9h); } private function toggleGeometry(containerId:String) : void diff --git a/src/alternativa/tanks/game/entities/map/MapMaterial.as b/src/alternativa/tanks/game/entities/map/MapMaterial.as index 9927c31..926b5c2 100644 --- a/src/alternativa/tanks/game/entities/map/MapMaterial.as +++ b/src/alternativa/tanks/game/entities/map/MapMaterial.as @@ -261,7 +261,7 @@ package alternativa.tanks.game.entities.map program.upload(camera.alternativa3d::context3D); optionsPrograms[index] = 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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); drawUnit.alternativa3d::setVertexBufferAt(program.aUV1,lightMapUVBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[this.lightMapChannel]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[this.lightMapChannel]]); diff --git a/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as b/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as index 07fd078..24e5fef 100644 --- a/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as +++ b/src/alternativa/tanks/game/entities/map/VisibleLightMaterial.as @@ -109,7 +109,7 @@ package alternativa.tanks.game.entities.map 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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aNormal"),normalsBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.NORMAL],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.NORMAL]); diff --git a/src/alternativa/tanks/game/entities/tank/BasicWeaponManualControlComponent.as b/src/alternativa/tanks/game/entities/tank/BasicWeaponManualControlComponent.as index cf34b77..be314df 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 name_lp:IBasicWeapon; - private var §_-89§:Boolean; + private var name_89:Boolean; - private var §_-ZM§:Boolean; + private var name_ZM: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.name_lp = IBasicWeapon(entity.getComponentStrict(IBasicWeapon)); entity.addEventHandler(TankEvents.SET_ACTIVATING_STATE,this.onSetInactiveState); entity.addEventHandler(TankEvents.SET_DEAD_STATE,this.onSetInactiveState); entity.addEventHandler(TankEvents.SET_RESPAWN_STATE,this.onSetInactiveState); @@ -57,20 +57,20 @@ package alternativa.tanks.game.entities.tank public function runLogic() : void { - if(this.§_-89§) + if(this.name_89) { - this.§_-lp§.pullTrigger(); - if(this.§_-ZM§) + this.name_lp.pullTrigger(); + if(this.name_ZM) { - this.§_-lp§.forceUpdate(); + this.name_lp.forceUpdate(); } } - if(this.§_-ZM§) + if(this.name_ZM) { - this.§_-lp§.releaseTrigger(); + this.name_lp.releaseTrigger(); } - this.§_-89§ = false; - this.§_-ZM§ = false; + this.name_89 = false; + this.name_ZM = 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.name_89 = true; if(!this.enabled) { - this.§_-ZM§ = false; + this.name_ZM = false; } break; case KeyboardEventType.KEY_UP: - this.§_-ZM§ = true; + this.name_ZM = true; if(!this.enabled) { - this.§_-lp§.releaseTrigger(); - this.§_-89§ = false; + this.name_lp.releaseTrigger(); + this.name_89 = false; break; } } diff --git a/src/alternativa/tanks/game/entities/tank/TankHull.as b/src/alternativa/tanks/game/entities/tank/TankHull.as index d93b985..0cc634d 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_Sh:Vector3 = new Vector3(); - public var §_-Rj§:Vector3 = new Vector3(); + public var name_Rj:Vector3 = new Vector3(); - public var §_-EN§:Vector3 = new Vector3(); + public var name_EN:Vector3 = new Vector3(); - public var §_-eh§:BoxData; + public var name_eh:BoxData; - public var §_-AE§:Vector. = new Vector.(); + public var name_AE:Vector. = new Vector.(); - public var §_-KR§:Vector. = new Vector.(); + public var name_KR:Vector. = new Vector.(); - public var §_-j9§:Vector. = new Vector.(); + public var name_j9:Vector. = new Vector.(); - public var §_-Hd§:Vector. = new Vector.(); + public var name_Hd:Vector. = new Vector.(); - public var §_-DH§:Number = 1; + public var name_DH:Number = 1; - public var §_-EY§:Vector. = new Vector.(); + public var name_EY:Vector. = new Vector.(); - public var §_-M4§:Vector. = new Vector.(); + public var name_M4:Vector. = new Vector.(); - public var §_-Ei§:Skin; + public var name_Ei:Skin; - public var §_-iA§:Skin; + public var name_iA: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..25a100a 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 name_Of:Vector. = new Vector.(); - public var §_-O3§:Vector. = new Vector.(); + public var name_O3:Vector. = new Vector.(); - public var §_-G3§:Vector3 = new Vector3(); + public var name_G3: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..9540b44 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 name_de: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.name_de > SYNC_INTERVAL) { if(this.callback != null) { this.callback.onControlChanged(moveDirection,turnDirection,Boolean(conReverseBackTurn.value)); } - this.§_-de§ = TimeSystem.time; + this.name_de = 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..920847e 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.name_qg = this.object; directionalShadowRenderer.setLight(directionalLights[0]); this.renderSystem.addShadowRenderer(directionalShadowRenderer); this.consumer.setShadowRenderer(directionalShadowRenderer); diff --git a/src/alternativa/tanks/game/entities/tank/graphics/GraphicsControlComponent.as b/src/alternativa/tanks/game/entities/tank/graphics/GraphicsControlComponent.as index fa37cb1..ae6be2b 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 name_z:EventStates; private var components:Vector.; - private var §case §:Boolean; + private var name_case:Boolean; - private var §_-DV§:Boolean; + private var name_DV: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.name_z = new EventStates(); + this.name_z.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,new ActivatingState(this)); + this.name_z.setEventState(entity,TankEvents.SET_ACTIVE_STATE,new ActiveState(this)); + this.name_z.setEventState(entity,TankEvents.SET_DEAD_STATE,new DeadState(this)); var respawnState:RespawnState = new RespawnState(this); - this.§_-z§.setEventState(entity,TankEvents.SET_RESPAWN_STATE,respawnState); - this.§_-z§.§_-Ah§ = EmptyState.INSTANCE; + this.name_z.setEventState(entity,TankEvents.SET_RESPAWN_STATE,respawnState); + this.name_z.name_Ah = 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.name_case) { 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.name_case = true; } - this.§_-DV§ = false; + this.name_DV = false; this.alpha = 1; } public function removeFromScene() : void { - if(this.§case §) + if(this.name_case) { - this.§_-DV§ = true; + this.name_DV = true; } } public function doRemoveFromScene() : void { var tankGraphicsComponent:ITankGraphicsComponent = null; - this.§_-DV§ = false; - this.§case § = false; + this.name_DV = false; + this.name_case = 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.name_DV) { if(this.alpha == 0) { diff --git a/src/alternativa/tanks/game/entities/tank/graphics/PhysicsRendererComponent.as b/src/alternativa/tanks/game/entities/tank/graphics/PhysicsRendererComponent.as index 2611055..56d1af2 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/PhysicsRendererComponent.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/PhysicsRendererComponent.as @@ -35,9 +35,9 @@ package alternativa.tanks.game.entities.tank.graphics private var turret:TurretPhysicsComponent; - private var §_-hF§:Vector.; + private var name_hF:Vector.; - private var §_-ec§:Object3D; + private var name_ec:Object3D; private var rays:Vector.; @@ -54,7 +54,7 @@ package alternativa.tanks.game.entities.tank.graphics var wireFrame:WireFrame = null; this.chassis = LegacyTrackedChassisComponent(entity.getComponentStrict(LegacyTrackedChassisComponent)); this.turret = TurretPhysicsComponent(entity.getComponentStrict(TurretPhysicsComponent)); - this.§_-hF§ = new Vector.(); + this.name_hF = new Vector.(); var body:Body = this.chassis.getBody(); for(var item:CollisionPrimitiveListItem = body.collisionPrimitives.head; item != null; ) { @@ -62,22 +62,22 @@ package alternativa.tanks.game.entities.tank.graphics hs = collisionBox.hs.clone().scale(2); box = new Box(hs.x,hs.y,hs.z); wireFrame = WireFrame.createEdges(box,16711680); - this.§_-hF§.push(new CollisionPrimitive3D(collisionBox,wireFrame)); + this.name_hF.push(new CollisionPrimitive3D(collisionBox,wireFrame)); item = item.next; } var trackedChassisGraphicsComponent:TrackedChassisGraphicsComponent = TrackedChassisGraphicsComponent(entity.getComponentStrict(TrackedChassisGraphicsComponent)); var hull:TankHull = trackedChassisGraphicsComponent.getHull(); - hs = hull.§_-eh§.hs.clone().scale(2); + hs = hull.name_eh.hs.clone().scale(2); box = new Box(hs.x,hs.y,hs.z); - this.§_-ec§ = WireFrame.createEdges(box,65280); + this.name_ec = WireFrame.createEdges(box,65280); this.initRays(); } private function initRays() : void { this.rays = new Vector.(); - this.addRays(this.chassis.§_-Ei§,this.rays); - this.addRays(this.chassis.§_-iA§,this.rays); + this.addRays(this.chassis.name_Ei,this.rays); + this.addRays(this.chassis.name_iA,this.rays); } private function addRays(track:LegacyTrack, rays:Vector.) : void @@ -101,11 +101,11 @@ package alternativa.tanks.game.entities.tank.graphics var collisionPrimitive3D:CollisionPrimitive3D = null; var rayEntry:RayEntry = null; var renderSystem:RenderSystem = gameKernel.getRenderSystem(); - for each(collisionPrimitive3D in this.§_-hF§) + for each(collisionPrimitive3D in this.name_hF) { this.addObject3D(renderSystem,collisionPrimitive3D.skin); } - this.addObject3D(renderSystem,this.§_-ec§); + this.addObject3D(renderSystem,this.name_ec); for each(rayEntry in this.rays) { this.addObject3D(renderSystem,rayEntry.originSkin); @@ -119,7 +119,7 @@ package alternativa.tanks.game.entities.tank.graphics var collisionPrimitive3D:CollisionPrimitive3D = null; var rayEntry:RayEntry = null; var renderSystem:RenderSystem = gameKernel.getRenderSystem(); - for each(collisionPrimitive3D in this.§_-hF§) + for each(collisionPrimitive3D in this.name_hF) { this.removeObject3D(renderSystem,collisionPrimitive3D.skin); } @@ -128,7 +128,7 @@ package alternativa.tanks.game.entities.tank.graphics this.removeObject3D(renderSystem,rayEntry.originSkin); this.removeObject3D(renderSystem,rayEntry.endSkin); } - this.removeObject3D(renderSystem,this.§_-ec§); + this.removeObject3D(renderSystem,this.name_ec); gameKernel.getRenderSystem().removeRenderer(this); } @@ -153,7 +153,7 @@ package alternativa.tanks.game.entities.tank.graphics var skin:Object3D = null; var worldPos:Vector3 = null; var rayLength:Number = NaN; - for each(entry in this.§_-hF§) + for each(entry in this.name_hF) { transform = entry.collisionPrimitive.transform; transform.getEulerAngles(eulerAngles); @@ -167,29 +167,29 @@ package alternativa.tanks.game.entities.tank.graphics } body = this.chassis.getBody(); body.baseMatrix.getEulerAngles(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; + this.name_ec.rotationX = eulerAngles.x; + this.name_ec.rotationY = eulerAngles.y; + this.name_ec.rotationZ = eulerAngles.z; + this.name_ec.x = body.state.position.x; + this.name_ec.y = body.state.position.y; + this.name_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§) + if(rayEntry.ray.name_n3) { - rayLength = rayEntry.ray.§_-ZA§.t; + rayLength = rayEntry.ray.name_ZA.t; } else { - rayLength = this.chassis.§_-CF§.rayLength; + rayLength = this.chassis.name_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; + rayEntry.endSkin.x = worldPos.x + rayEntry.ray.name_Py.x * rayLength; + rayEntry.endSkin.y = worldPos.y + rayEntry.ray.name_Py.y * rayLength; + rayEntry.endSkin.z = worldPos.z + rayEntry.ray.name_Py.z * rayLength; } } } 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..71cb8a0 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 name_9d:Vector.; - private var §_-MZ§:Vector.; + private var name_MZ:Vector.; - private var §_-oo§:Vector.; + private var name_oo:Vector.; private var dUdY:Number; - private var §_-cr§:Number = 0; + private var name_cr: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.name_oo = new Vector.(wheels.length); for(var i:int = 0; i < wheels.length; i++) { - this.§_-oo§[i] = wheels[i].boundBox.maxY; + this.name_oo[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.name_oo[i]; wheelDeltaZ = Number(this.physicsComponent.getWheelDeltaZ(wheelMesh.name)); - wheelMesh.z = this.§_-9d§[i] + wheelDeltaZ; + wheelMesh.z = this.name_9d[i] + wheelDeltaZ; bone = this.trackSkin.getChildByName(this.getBoneName(wheelMesh.name)); if(bone != null) { - bone.z = this.§_-MZ§[i] + wheelDeltaZ; + bone.z = this.name_MZ[i] + wheelDeltaZ; } i++; } if(period > 0) { delta = ds * this.dUdY; - newOffset = this.§_-cr§ + delta; + newOffset = this.name_cr + delta; if(newOffset < 0) { while(newOffset < 0) { newOffset += period; } - delta = newOffset - this.§_-cr§; - this.§_-cr§ = newOffset; + delta = newOffset - this.name_cr; + this.name_cr = newOffset; } else if(newOffset < period) { - this.§_-cr§ = newOffset; + this.name_cr = 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.name_cr; + this.name_cr = newOffset; } - this.material.vOffset = this.§_-cr§; + this.material.vOffset = this.name_cr; } } private function initZCoords() : void { var bone:Object3D = null; - this.§_-9d§ = new Vector.(this.wheels.length); - this.§_-MZ§ = new Vector.(this.wheels.length); + this.name_9d = new Vector.(this.wheels.length); + this.name_MZ = new Vector.(this.wheels.length); for(var i:int = 0; i < this.wheels.length; ) { - this.§_-9d§[i] = this.wheels[i].z; + this.name_9d[i] = this.wheels[i].z; bone = this.trackSkin.getChildByName(this.getBoneName(this.wheels[i].name)); if(bone != null) { - this.§_-MZ§[i] = bone.z; + this.name_MZ[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..5b26b1d 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 name_nh: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 name_Gf:TextureMaterial; - private var §_-EY§:Vector.; + private var name_EY:Vector.; - private var §_-M4§:Vector.; + private var name_M4:Vector.; - private var §_-Ei§:Skin; + private var name_Ei:Skin; - private var §_-iA§:Skin; + private var name_iA:Skin; - private var §_-dh§:TrackAnimator; + private var name_dh:TrackAnimator; - private var §_-R4§:TrackAnimator; + private var name_R4:TrackAnimator; private var shadowRenderer:DirectionalShadowRenderer; - private var §_-5s§:DirectionalShadowRendererConstructor; + private var name_5s: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.name_dh.material = TracksMaterial2(tracksMaterial.clone()); + this.name_Ei.setMaterialToAllSurfaces(this.name_dh.material); + this.name_R4.material = TracksMaterial2(tracksMaterial.clone()); + this.name_iA.setMaterialToAllSurfaces(this.name_R4.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.name_nh; } public function setShadowRenderer(shadowRenderer:DirectionalShadowRenderer) : void { this.shadowRenderer = shadowRenderer; - this.§_-5s§ = null; + this.name_5s = 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.name_nh); } this.hull = newHull; if(this.hull != null) { - this.§_-nh§ = new Mesh(); - this.§_-nh§.geometry = this.hull.geometry; - this.§_-nh§.addSurface(this.§_-Gf§,0,this.hull.geometry.numTriangles); - this.§_-nh§.calculateBoundBox(); - this.§_-EY§ = this.createWheels(this.§_-nh§,this.hull.§_-EY§); - this.§_-M4§ = this.createWheels(this.§_-nh§,this.hull.§_-M4§); - this.§_-Ei§ = this.createTrackMesh(this.hull.§_-Ei§,this.§_-nh§); - this.§_-iA§ = this.createTrackMesh(this.hull.§_-iA§,this.§_-nh§); - dUdY = this.getRatio(this.§_-Ei§); - this.§_-dh§ = new TrackAnimator(this.§_-Ei§,this.§_-EY§,dUdY); - this.§_-R4§ = new TrackAnimator(this.§_-iA§,this.§_-M4§,dUdY); + this.name_nh = new Mesh(); + this.name_nh.geometry = this.hull.geometry; + this.name_nh.addSurface(this.name_Gf,0,this.hull.geometry.numTriangles); + this.name_nh.calculateBoundBox(); + this.name_EY = this.createWheels(this.name_nh,this.hull.name_EY); + this.name_M4 = this.createWheels(this.name_nh,this.hull.name_M4); + this.name_Ei = this.createTrackMesh(this.hull.name_Ei,this.name_nh); + this.name_iA = this.createTrackMesh(this.hull.name_iA,this.name_nh); + dUdY = this.getRatio(this.name_Ei); + this.name_dh = new TrackAnimator(this.name_Ei,this.name_EY,dUdY); + this.name_R4 = new TrackAnimator(this.name_iA,this.name_M4,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.name_nh); } } } @@ -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.name_Gf,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.name_nh.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.name_nh != null) { - this.container.addChild(this.§_-nh§); + this.container.addChild(this.name_nh); 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.name_nh != null) { - this.container.removeChild(this.§_-nh§); + this.container.removeChild(this.name_nh); 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.name_nh; } override public function initComponent() : void { this.physicsComponent = LegacyTrackedChassisComponent(entity.getComponentStrict(LegacyTrackedChassisComponent)); GraphicsControlComponent(entity.getComponentStrict(GraphicsControlComponent)).addComponent(this); - this.§_-dh§.physicsComponent = this.physicsComponent; - this.§_-R4§.physicsComponent = this.physicsComponent; + this.name_dh.physicsComponent = this.physicsComponent; + this.name_R4.physicsComponent = this.physicsComponent; } override public function addToGame(gameKernel:GameKernel) : void { this.gameKernel = gameKernel; var renderSystem:RenderSystem = gameKernel.getRenderSystem(); - this.§_-5s§ = new DirectionalShadowRendererConstructor(this.§_-nh§,renderSystem,this); + this.name_5s = new DirectionalShadowRendererConstructor(this.name_nh,renderSystem,this); if(renderSystem.isShadowSystemReady()) { - this.§_-5s§.createShadowRenderer(); - this.§_-5s§ = null; + this.name_5s.createShadowRenderer(); + this.name_5s = null; } else { - renderSystem.addShadowRendererConstructor(this.§_-5s§); + renderSystem.addShadowRendererConstructor(this.name_5s); } } override public function removeFromGame(gameKernel:GameKernel) : void { - if(this.§_-5s§ != null) + if(this.name_5s != null) { - gameKernel.getRenderSystem().removeShadowRendererConstructor(this.§_-5s§); - this.§_-5s§ = null; + gameKernel.getRenderSystem().removeShadowRendererConstructor(this.name_5s); + this.name_5s = 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_Sh); + hullMatrix.append(this.physicsComponent.name_YH); hullMatrix.getEulerAngles(eulerAngles); - this.§_-nh§.x = hullMatrix.d; - this.§_-nh§.y = hullMatrix.h; - this.§_-nh§.z = hullMatrix.l; - this.§_-nh§.rotationX = eulerAngles.x; - this.§_-nh§.rotationY = eulerAngles.y; - this.§_-nh§.rotationZ = eulerAngles.z; + this.name_nh.x = hullMatrix.d; + this.name_nh.y = hullMatrix.h; + this.name_nh.z = hullMatrix.l; + this.name_nh.rotationX = eulerAngles.x; + this.name_nh.rotationY = eulerAngles.y; + this.name_nh.rotationZ = eulerAngles.z; this.animateTracks(); } private function animateTracks() : void { var dt:Number = NaN; - if(this.§_-dh§ != null) + if(this.name_dh != null) { dt = TimeSystem.timeDeltaSeconds; - this.§_-dh§.animate(this.hull.§_-DH§,this.physicsComponent.getLeftTrackSpeed(),dt); - this.§_-R4§.animate(this.hull.§_-DH§,this.physicsComponent.getRightTrackSpeed(),dt); + this.name_dh.animate(this.hull.name_DH,this.physicsComponent.getLeftTrackSpeed(),dt); + this.name_R4.animate(this.hull.name_DH,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.name_dh.material.alpha = 1; + this.name_R4.material.alpha = 1; + this.name_nh.setMaterialToAllSurfaces(this.hullMaterials.deadMaterial); + this.name_Gf = this.hullMaterials.deadMaterial; break; case MaterialType.NORMAL: this.hullMaterials.normalMaterial.alpha = 1; - this.§_-dh§.material.alpha = 1; - this.§_-R4§.material.alpha = 1; - this.§_-nh§.setMaterialToAllSurfaces(this.hullMaterials.normalMaterial); - this.§_-Gf§ = this.hullMaterials.normalMaterial; + this.name_dh.material.alpha = 1; + this.name_R4.material.alpha = 1; + this.name_nh.setMaterialToAllSurfaces(this.hullMaterials.normalMaterial); + this.name_Gf = this.hullMaterials.normalMaterial; break; case MaterialType.ACTIVATING: this.hullMaterials.normalMaterial.alpha = 0.5; - this.§_-dh§.material.alpha = 0.5; - this.§_-R4§.material.alpha = 0.5; - this.§_-nh§.setMaterialToAllSurfaces(this.hullMaterials.normalMaterial); - this.§_-Gf§ = this.hullMaterials.normalMaterial; + this.name_dh.material.alpha = 0.5; + this.name_R4.material.alpha = 0.5; + this.name_nh.setMaterialToAllSurfaces(this.hullMaterials.normalMaterial); + this.name_Gf = this.hullMaterials.normalMaterial; } - var numWheels:int = int(this.§_-EY§.length); + var numWheels:int = int(this.name_EY.length); for(var i:int = 0; i < numWheels; i++) { - this.§_-EY§[i].setMaterialToAllSurfaces(this.§_-Gf§); - this.§_-M4§[i].setMaterialToAllSurfaces(this.§_-Gf§); + this.name_EY[i].setMaterialToAllSurfaces(this.name_Gf); + this.name_M4[i].setMaterialToAllSurfaces(this.name_Gf); } } public function setAlpha(value:Number) : void { - this.§_-Gf§.alpha = value; - this.§_-dh§.material.alpha = value; - this.§_-R4§.material.alpha = value; + this.name_Gf.alpha = value; + this.name_dh.material.alpha = value; + this.name_R4.material.alpha = value; } private function enableMouseListeners() : void { - if(this.§_-nh§ != null) + if(this.name_nh != null) { - this.§_-nh§.addEventListener(MouseEvent3D.CLICK,this.onMouseClick); + this.name_nh.addEventListener(MouseEvent3D.CLICK,this.onMouseClick); } } private function disableMouseListeners() : void { - if(this.§_-nh§ != null) + if(this.name_nh != null) { - this.§_-nh§.removeEventListener(MouseEvent3D.CLICK,this.onMouseClick); + this.name_nh.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..d15ac54 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/GiShadowMaterial.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/materials/GiShadowMaterial.as @@ -167,7 +167,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials 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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); 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..f9d20a0 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 name_jM:Number = 1; - public var §_-Sf§:Number = 1; + public var name_Sf:Number = 1; - public var §_-d4§:Number = 1; + public var name_d4:Number = 1; public var normalMap:TextureResource; public var glossiness:Number = 100; - public var §_-kj§:Number = 1; + public var name_kj:Number = 1; - alternativa3d var §_-Vr§:Boolean = false; + alternativa3d var name_Vr:Boolean = false; public function TankMaterial(colorMap:TextureResource = null, diffuseMap:TextureResource = null, normalMap:TextureResource = null, surfaceMap:TextureResource = 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.name_Vr) { 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.name_oG + "Position","#c1=c" + light.name_oG + "Color","#c2=c" + light.name_oG + "Radius","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0.xyz, t0.xyz","nrm t0.xyz, t0.xyz","add t1.xyz, i1.xyz, t0.xyz","mov t1.w, c0.w","nrm t1.xyz, t1.xyz","dp3 t1.w, t1.xyz, i0.xyz","pow t1.w, t1.w, o1.w","sqt t1.x, t0.w","dp3 t0.w, t0.xyz, i0.xyz","sub t0.x, t1.x, c2.z","div t0.y, t0.x, c2.y","sub t0.x, c2.x, t0.y","sat t0.xw, t0.xw","mul t0.xyz, c1.xyz, t0.xxx","mul t1.xyz, t0.xyz, t1.w","add o1.xyz, o1.xyz, t1.xyz","mul t0.xyz, t0.xyz, t0.www","add o0.xyz, o0.xyz, t0.xyz"]); lightFragmentProcedure.name = i + "OmniLight"; } else if(light is SpotLight) { - lightFragmentProcedure.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.name_oG + "Position","#c1=c" + light.name_oG + "Color","#c2=c" + light.name_oG + "Radius","#c3=c" + light.name_oG + "Axis","#v0=vPosition","sub t0, c0, v0","dp3 t0.w, t0, t0","nrm t0.xyz,t0.xyz","add t2.xyz, i1.xyz, t0.xyz","nrm t2.xyz, t2.xyz","dp3 t2.x, t2.xyz, i0.xyz","pow t2.x, t2.x, o1.w","dp3 t1.x, t0.xyz, c3.xyz","dp3 t0.x,t0,i0","sqt t0.w,t0.w","sub t0.w, t0.w, c2.y","div t0.y, t0.w, c2.x","sub t0.w, c0.w, t0.y","sub t0.y, t1.x, c2.w","div t0.y, t0.y, c2.z","sat t0.xyw,t0.xyw","mul t1.xyz,c1.xyz,t0.yyy","mul t1.xyz,t1.xyz,t0.www","mul t2.xyz, t2.x, t1.xyz","add o1.xyz, o1.xyz, t2.xyz","mul t1.xyz, t1.xyz, t0.xxx","add o0.xyz, o0.xyz, t1.xyz"]); lightFragmentProcedure.name = i + "SpotLight"; } } @@ -264,7 +264,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials fragmentLinker.addProcedure(_applySpecularProcedure); fragmentLinker.setOutputParams(_applySpecularProcedure,"tTotalHighLight"); } - if(§_-L4§) + if(name_L4) { 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.name_oG + "Direction","#c1=c" + light.name_oG + "Color","add t0.xyz, i1.xyz, c0.xyz","mov t0.w, c0.w","nrm t0.xyz,t0.xyz","dp3 t0.w, t0.xyz, i0.xyz","pow t0.w, t0.w, o1.w","dp3 t0.x, i0, c0.xyz","sat t0.x, t0.x"]; if(useShadow) { source.push("mul t0.x, t0.x, i2.x"); @@ -374,7 +374,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials { return; } - if(!§_-L4§ && opacityMap != null && opacityMap.alternativa3d::_texture == null) + if(!name_L4 && 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.name_Vr ? "T" : "t") + (opacityMap != null ? "O" : "o") + (this.surfaceMap != null ? "S" : "s") + (name_L4 ? "D" : "d"); for(i = 0; i < lightsLength; i++) { light = lights[i]; @@ -401,7 +401,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials directional = DirectionalLight(light); key += "S"; } - key += light.alternativa3d::_-oG; + key += light.name_oG; } var dict:Dictionary = _programs[object.alternativa3d::transformProcedure]; if(dict == null) @@ -422,14 +422,14 @@ package alternativa.tanks.game.entities.tank.graphics.materials 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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("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.name_d4 * camera.alternativa3d::ambient[0],this.name_d4 * camera.alternativa3d::ambient[1],this.name_d4 * camera.alternativa3d::ambient[2]); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cSurface"),0,this.glossiness,this.name_kj,alpha); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cTiling"),this.name_jM,this.name_Sf,0,0); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sColormap"),this.colorMap.alternativa3d::_texture); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sDiffuse"),diffuseMap.alternativa3d::_texture); if(opacityMap != null) @@ -442,7 +442,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials } if(lightsLength > 0) { - if(this.alternativa3d::_-Vr) + if(this.name_Vr) { 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.name_cl; len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "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.name_cl; rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k); rScale /= 3; - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "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.name_cl; rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); rScale += len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); rScale /= 3; falloff = Number(Math.cos(spot.falloff * 0.5)); hotspot = Number(Math.cos(spot.hotspot * 0.5)); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Axis"),-transform.c / len,-transform.g / len,-transform.k / len); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),spot.attenuationEnd * rScale - spot.attenuationBegin * rScale,spot.attenuationBegin * rScale,hotspot == falloff ? 0.000001 : hotspot - falloff,falloff); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Axis"),-transform.c / len,-transform.g / len,-transform.k / len); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_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.name_oG + "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(name_L4 || 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/TankMaterial2.as b/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial2.as index 32559dc..058f2b7 100644 --- a/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial2.as +++ b/src/alternativa/tanks/game/entities/tank/graphics/materials/TankMaterial2.as @@ -93,15 +93,15 @@ package alternativa.tanks.game.entities.tank.graphics.materials public var surfaceMap:TextureResource; - public var §_-jM§:Number = 1; + public var name_jM:Number = 1; - public var §_-Sf§:Number = 1; + public var name_Sf:Number = 1; public var normalMap:TextureResource; public var glossiness:Number = 100; - public var §_-kj§:Number = 1; + public var name_kj: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"); @@ -121,12 +121,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.name_oG + "Direction","#c1=c" + light.name_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: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.name_oG + "Position","#c1=c" + light.name_oG + "Color","#c2=c" + light.name_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 @@ -185,7 +185,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.name_oG; actualLightsLength++; } i++; @@ -344,7 +344,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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); if(ambient) { @@ -355,7 +355,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials if(ambient) { drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.cAmbient,camera.alternativa3d::ambient[0],camera.alternativa3d::ambient[1],camera.alternativa3d::ambient[2],1); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.cTiling,this.§_-jM§,this.§_-Sf§,0,0); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.cTiling,this.name_jM,this.name_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); @@ -442,7 +442,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials var omni:OmniLight = null; 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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.aPosition,positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); drawUnit.alternativa3d::setVertexBufferAt(program.aUV,uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); @@ -453,27 +453,27 @@ package alternativa.tanks.game.entities.tank.graphics.materials light = lights[i]; if(light is DirectionalLight) { - transform = light.alternativa3d::_-cl; + transform = light.name_cl; len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } else if(light is OmniLight) { omni = OmniLight(light); - transform = light.alternativa3d::_-cl; + transform = light.name_cl; rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k); rScale /= 3; - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } i++; } - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.cSurface,0,this.glossiness,this.§_-kj§,1); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.cTiling,this.§_-jM§,this.§_-Sf§,0,0); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.cSurface,0,this.glossiness,this.name_kj,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.cTiling,this.name_jM,this.name_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); @@ -530,7 +530,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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.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.cProjMatrix,object.alternativa3d::localToCameraTransform); @@ -586,7 +586,7 @@ package alternativa.tanks.game.entities.tank.graphics.materials override public function clone() : Material { var cloned:TankMaterial2 = new TankMaterial2(this.colorMap,this.diffuse,this.normalMap,this.surfaceMap); - cloned.§_-kj§ = this.§_-kj§; + cloned.name_kj = this.name_kj; cloned.glossiness = this.glossiness; return cloned; } 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..bff5774 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 name_kj: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.name_oG + "Direction","#c1=c" + light.name_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: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.name_oG + "Position","#c1=c" + light.name_oG + "Color","#c2=c" + light.name_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 @@ -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.name_oG; 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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); if(ambient) { @@ -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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aTangent"),tangentBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TANGENT4],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TANGENT4]); @@ -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.name_cl; len = Number(Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k)); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Direction"),-transform.c / len,-transform.g / len,-transform.k / len,1); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); } else if(light is OmniLight) { omni = OmniLight(light); - transform = light.alternativa3d::_-cl; + transform = light.name_cl; rScale = Number(Math.sqrt(transform.a * transform.a + transform.e * transform.e + transform.i * transform.i)); rScale += Math.sqrt(transform.b * transform.b + transform.f * transform.f + transform.j * transform.j); rScale += Math.sqrt(transform.c * transform.c + transform.g * transform.g + transform.k * transform.k); rScale /= 3; - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Position"),transform.d,transform.h,transform.l); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); - drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.alternativa3d::_-oG + "Color"),light.alternativa3d::red,light.alternativa3d::green,light.alternativa3d::blue); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Position"),transform.d,transform.h,transform.l); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "Radius"),1,omni.attenuationEnd * rScale - omni.attenuationBegin * rScale,omni.attenuationBegin * rScale); + drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("c" + light.name_oG + "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.name_kj,1); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sDiffuse"),diffuseMap.alternativa3d::_texture); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sBump"),this.normalMap.alternativa3d::_texture); return drawUnit; @@ -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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); @@ -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.name_kj = this.name_kj; cloned.glossiness = this.glossiness; return cloned; } diff --git a/src/alternativa/tanks/game/entities/tank/graphics/materials/TreesMaterial.as b/src/alternativa/tanks/game/entities/tank/graphics/materials/TreesMaterial.as index de0fffb..cba5d05 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.name_ES = 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.name_L4 = name_L4; cloned.glossiness = glossiness; - cloned.§_-kj§ = §_-kj§; + cloned.name_kj = name_kj; 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..3fa7b71 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 name_Pf:Mesh; - private var §_-a§:TankPartMaterials; + private var name_a:TankPartMaterials; private var physicsComponent:ITurretPhysicsComponent; - private var §_-Gf§:TextureMaterial; + private var name_Gf: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.name_Pf; } 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.name_Pf); } } } @@ -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.name_Pf.x = vector.x; + this.name_Pf.y = vector.y; + this.name_Pf.z = vector.z; + this.name_Pf.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.name_a.deadMaterial.alpha = 1; + this.name_Pf.setMaterialToAllSurfaces(this.name_a.deadMaterial); + this.name_Gf = this.name_a.deadMaterial; break; case MaterialType.ACTIVATING: - this.§_-a§.normalMaterial.alpha = 0.5; - this.§_-Pf§.setMaterialToAllSurfaces(this.§_-a§.normalMaterial); - this.§_-Gf§ = this.§_-a§.normalMaterial; + this.name_a.normalMaterial.alpha = 0.5; + this.name_Pf.setMaterialToAllSurfaces(this.name_a.normalMaterial); + this.name_Gf = this.name_a.normalMaterial; break; case MaterialType.NORMAL: - this.§_-a§.normalMaterial.alpha = 1; - this.§_-Pf§.setMaterialToAllSurfaces(this.§_-a§.normalMaterial); - this.§_-Gf§ = this.§_-a§.normalMaterial; + this.name_a.normalMaterial.alpha = 1; + this.name_Pf.setMaterialToAllSurfaces(this.name_a.normalMaterial); + this.name_Gf = this.name_a.normalMaterial; } } @@ -120,7 +120,7 @@ package alternativa.tanks.game.entities.tank.graphics.turret public function setAlpha(value:Number) : void { - this.§_-Gf§.alpha = value; + this.name_Gf.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.name_Pf.alternativa3d::removeFromParent(); } this.turret = value; if(this.turret != null) { - this.§_-Pf§ = new Mesh(); - this.§_-Pf§.geometry = this.turret.geometry; - this.§_-Pf§.addSurface(this.§_-Gf§,0,this.turret.geometry.numTriangles); - this.§_-Pf§.calculateBoundBox(); + this.name_Pf = new Mesh(); + this.name_Pf.geometry = this.turret.geometry; + this.name_Pf.addSurface(this.name_Gf,0,this.turret.geometry.numTriangles); + this.name_Pf.calculateBoundBox(); this.addToChassisSkin(); } } public function setTurretMaterials(materials:TankPartMaterials) : void { - this.§_-a§ = materials; + this.name_a = materials; } public function get turretMesh() : Mesh { - return this.§_-Pf§; + return this.name_Pf; } } } diff --git a/src/alternativa/tanks/game/entities/tank/parsers/TankHullParser.as b/src/alternativa/tanks/game/entities/tank/parsers/TankHullParser.as index ac04a9c..d47f32d 100644 --- a/src/alternativa/tanks/game/entities/tank/parsers/TankHullParser.as +++ b/src/alternativa/tanks/game/entities/tank/parsers/TankHullParser.as @@ -93,25 +93,25 @@ package alternativa.tanks.game.entities.tank.parsers private function parseMountPoint(mesh:Mesh, tankHull:TankHull) : void { - tankHull.§_-Rj§.reset(mesh.x,mesh.y,mesh.z); - tankHull.§_-EN§.copy(tankHull.§_-Rj§); + tankHull.name_Rj.reset(mesh.x,mesh.y,mesh.z); + tankHull.name_EN.copy(tankHull.name_Rj); } private function parseBody(mesh:Mesh, tankHull:TankHull) : void { - tankHull.§_-eh§ = TankPartParsingUtils.parseCollisionBoxData(mesh); + tankHull.name_eh = TankPartParsingUtils.parseCollisionBoxData(mesh); } private function parseDetailedGeometry(mesh:Mesh, tankHull:TankHull) : void { var boxData:BoxData = TankPartParsingUtils.parseCollisionBoxData(mesh); - tankHull.§_-AE§.push(boxData); + tankHull.name_AE.push(boxData); } private function parseSimpleGeometry(mesh:Mesh, tankHull:TankHull) : void { var boxData:BoxData = TankPartParsingUtils.parseCollisionBoxData(mesh); - tankHull.§_-KR§.push(boxData); + tankHull.name_KR.push(boxData); } private function parseSuspensionRay(mesh:Mesh, tankHull:TankHull) : void @@ -128,11 +128,11 @@ package alternativa.tanks.game.entities.tank.parsers 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_EY.push(tankWheel); } else { - tankHull.§_-M4§.push(tankWheel); + tankHull.name_M4.push(tankWheel); } } @@ -151,24 +151,24 @@ package alternativa.tanks.game.entities.tank.parsers } if(skin.name.toLowerCase().charAt(0) == "l") { - tankHull.§_-Ei§ = skin; + tankHull.name_Ei = skin; } else { - tankHull.§_-iA§ = skin; + tankHull.name_iA = skin; } } private function prepareAll(tankHull:TankHull) : void { - var skinMatrix:Matrix4 = tankHull.§_-eh§.matrix.clone(); + var skinMatrix:Matrix4 = tankHull.name_eh.matrix.clone(); skinMatrix.invert(); - skinMatrix.getAxis(3,tankHull.§_-Sh§); - tankHull.§_-Rj§.transform4(skinMatrix); - this.prepareCollisionGeometry(tankHull.§_-AE§,skinMatrix); - this.prepareCollisionGeometry(tankHull.§_-KR§,skinMatrix); - tankHull.§_-j9§ = this.prepareSuspensionPoints(leftSprings,skinMatrix); - tankHull.§_-Hd§ = this.prepareSuspensionPoints(rightSprings,skinMatrix); + skinMatrix.getAxis(3,tankHull.name_Sh); + tankHull.name_Rj.transform4(skinMatrix); + this.prepareCollisionGeometry(tankHull.name_AE,skinMatrix); + this.prepareCollisionGeometry(tankHull.name_KR,skinMatrix); + tankHull.name_j9 = this.prepareSuspensionPoints(leftSprings,skinMatrix); + tankHull.name_Hd = this.prepareSuspensionPoints(rightSprings,skinMatrix); leftSprings = null; rightSprings = null; } diff --git a/src/alternativa/tanks/game/entities/tank/parsers/TankTurretParser.as b/src/alternativa/tanks/game/entities/tank/parsers/TankTurretParser.as index 0ea6b47..db212a6 100644 --- a/src/alternativa/tanks/game/entities/tank/parsers/TankTurretParser.as +++ b/src/alternativa/tanks/game/entities/tank/parsers/TankTurretParser.as @@ -34,17 +34,17 @@ package alternativa.tanks.game.entities.tank.parsers private function parseFlagMountPoint(mesh:Mesh, tankTurret:TankTurret) : void { - tankTurret.§_-G3§.reset(mesh.x,mesh.y,mesh.z); + tankTurret.name_G3.reset(mesh.x,mesh.y,mesh.z); } private function parseTurretBox(mesh:Mesh, tankTurret:TankTurret) : void { - tankTurret.§_-Of§.push(TankPartParsingUtils.parseCollisionBoxData(mesh)); + tankTurret.name_Of.push(TankPartParsingUtils.parseCollisionBoxData(mesh)); } private function parseMuzzle(mesh:Mesh, tankTurret:TankTurret) : void { - tankTurret.§_-O3§.push(new Vector3(mesh.x,mesh.y,mesh.z)); + tankTurret.name_O3.push(new Vector3(mesh.x,mesh.y,mesh.z)); } } } diff --git a/src/alternativa/tanks/game/entities/tank/physics/InterpolationComponent.as b/src/alternativa/tanks/game/entities/tank/physics/InterpolationComponent.as index 1203006..0599f69 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 name_case:Boolean; public function InterpolationComponent() { @@ -77,19 +77,19 @@ package alternativa.tanks.game.entities.tank.physics private function addToScene() : void { - if(!this.§case §) + if(!this.name_case) { this.gameKernel.getPhysicsSystem().addInterpolationController(this); - this.§case § = true; + this.name_case = true; } } private function removeFromScene() : void { - if(this.§case §) + if(this.name_case) { this.gameKernel.getPhysicsSystem().removeInterpolationController(this); - this.§case § = false; + this.name_case = false; } } } diff --git a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyActivatingState.as b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyActivatingState.as index 37ecb5b..d6c32a7 100644 --- a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyActivatingState.as +++ b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyActivatingState.as @@ -7,12 +7,12 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy public class LegacyActivatingState extends LegacyComponentState { - private var §_-Cn§:ContactFilter; + private var name_Cn:ContactFilter; public function LegacyActivatingState(component:LegacyTrackedChassisComponent) { super(component); - this.§_-Cn§ = new ContactFilter(); + this.name_Cn = new ContactFilter(); } override public function start(data:*) : void @@ -22,16 +22,16 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy component.addToScene(); component.setDetailedCollisionGroup(CollisionGroup.TANK); component.setSuspensionCollisionMask(CollisionGroup.STATIC); - component.body.postCollisionFilter = this.§_-Cn§; + component.body.postCollisionFilter = this.name_Cn; var callback:IActivatingStateCallback = IActivatingStateCallback(data); if(callback != null) { gameKernel = component.gameKernel; - this.§_-Cn§.initCallback(callback); - gameKernel.getLogicSystem1().addLogicUnit(this.§_-Cn§); + this.name_Cn.initCallback(callback); + gameKernel.getLogicSystem1().addLogicUnit(this.name_Cn); physicsSystem = gameKernel.getPhysicsSystem(); - physicsSystem.addControllerAfter(this.§_-Cn§); - physicsSystem.addControllerBefore(this.§_-Cn§); + physicsSystem.addControllerAfter(this.name_Cn); + physicsSystem.addControllerBefore(this.name_Cn); } } @@ -40,14 +40,14 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy var gameKernel:GameKernel = null; var physicsSystem:PhysicsSystem = null; component.body.postCollisionFilter = null; - if(this.§_-Cn§.callback != null) + if(this.name_Cn.callback != null) { gameKernel = component.gameKernel; - gameKernel.getLogicSystem1().removeLogicUnit(this.§_-Cn§); + gameKernel.getLogicSystem1().removeLogicUnit(this.name_Cn); physicsSystem = gameKernel.getPhysicsSystem(); - physicsSystem.removeControllerAfter(this.§_-Cn§); - physicsSystem.removeControllerBefore(this.§_-Cn§); - this.§_-Cn§.callback = null; + physicsSystem.removeControllerAfter(this.name_Cn); + physicsSystem.removeControllerBefore(this.name_Cn); + this.name_Cn.callback = null; } } } 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..091cbe0 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_bv: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_Py:Vector3 = new Vector3(); - public var §_-n3§:Boolean = false; + public var name_n3:Boolean = false; - public var §_-ZA§:RayHit = new RayHit(); + public var name_ZA:RayHit = new RayHit(); - private var §_-Du§:Number = 0; + private var name_Du:Number = 0; - private var § do§:SimpleRaycastFilter; + private var name_do: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.name_do = 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_Py); this.body.baseMatrix.transformVector(this.relPos,this.worldPos); var p:Vector3 = this.body.state.position; this.worldPos.x += p.x; this.worldPos.y += p.y; this.worldPos.z += p.z; - if(this.§_-n3§) + if(this.name_n3) { - this.§_-Du§ = maxLength - this.§_-ZA§.t; + this.name_Du = maxLength - this.name_ZA.t; } - this.§_-n3§ = this.body.scene.collisionDetector.raycast(this.worldPos,this.§_-Py§,this.collisionMask,maxLength,this.§ do§,this.§_-ZA§); - if(this.§_-n3§ && this.§_-ZA§.primitive == null) + this.name_n3 = this.body.scene.collisionDetector.raycast(this.worldPos,this.name_Py,this.collisionMask,maxLength,this.name_do,this.name_ZA); + if(this.name_n3 && this.name_ZA.primitive == null) { throw new Error("Ray hit error. Body id = " + this.body.id); } - return this.§_-n3§; + return this.name_n3; } 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_bv = 0; + if(!this.name_n3) { return; } - _groundUp = this.§_-ZA§.normal; + _groundUp = this.name_ZA.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_ZA.position.x - state.position.x; + _v.y = this.name_ZA.position.y - state.position.y; + _v.z = this.name_ZA.position.z - state.position.z; var rot:Vector3 = state.rotation; _relVel.x = rot.y * _v.z - rot.z * _v.y + state.velocity.x; _relVel.y = rot.z * _v.x - rot.x * _v.z + state.velocity.y; _relVel.z = rot.x * _v.y - rot.y * _v.x + state.velocity.z; - if(this.§_-ZA§.primitive.body != null) + if(this.name_ZA.primitive.body != null) { - bState = this.§_-ZA§.primitive.body.state; - _v.x = this.§_-ZA§.position.x - bState.position.x; - _v.y = this.§_-ZA§.position.y - bState.position.y; - _v.z = this.§_-ZA§.position.z - bState.position.z; + bState = this.name_ZA.primitive.body.state; + _v.x = this.name_ZA.position.x - bState.position.x; + _v.y = this.name_ZA.position.y - bState.position.y; + _v.z = this.name_ZA.position.z - bState.position.z; rot = bState.rotation; _relVel.x -= rot.y * _v.z - rot.z * _v.y + bState.velocity.x; _relVel.y -= rot.z * _v.x - rot.x * _v.z + bState.velocity.y; @@ -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_bv = fwdSpeed; if(throttle > 0 && fwdSpeed < maxSpeed || throttle < 0 && -fwdSpeed < maxSpeed) { - _v.x = this.worldPos.x + data.§_-Ko§ * this.§_-Py§.x; - _v.y = this.worldPos.y + data.§_-Ko§ * this.§_-Py§.y; - _v.z = this.worldPos.z + data.§_-Ko§ * this.§_-Py§.z; + _v.x = this.worldPos.x + data.name_Ko * this.name_Py.x; + _v.y = this.worldPos.y + data.name_Ko * this.name_Py.y; + _v.z = this.worldPos.z + data.name_Ko * this.name_Py.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_ZA.t; var currDisplacement:Number = data.rayLength - t; - var springForce:Number = springCoeff * currDisplacement * (_worldUp.x * this.§_-ZA§.normal.x + _worldUp.y * this.§_-ZA§.normal.y + _worldUp.z * this.§_-ZA§.normal.z); - var upSpeed:Number = (currDisplacement - this.§_-Du§) / dt; - springForce += upSpeed * data.§_-WZ§; + var springForce:Number = springCoeff * currDisplacement * (_worldUp.x * this.name_ZA.normal.x + _worldUp.y * this.name_ZA.normal.y + _worldUp.z * this.name_ZA.normal.z); + var upSpeed:Number = (currDisplacement - this.name_Du) / dt; + springForce += upSpeed * data.name_WZ; 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_Py.x; + _force.y = -springForce * this.name_Py.y; + _force.z = -springForce * this.name_Py.z; if(relSpeed > 0.001) { slipSpeed = _relVel.dot(_groundRight); - sideFriction = slipTerm == 0 || slipSpeed >= 0 && slipTerm > 0 || slipSpeed <= 0 && slipTerm < 0 ? data.§_-4W§ : 2 * data.§_-VW§; + sideFriction = slipTerm == 0 || slipSpeed >= 0 && slipTerm > 0 || slipSpeed <= 0 && slipTerm < 0 ? data.name_4W : 2 * data.name_VW; frictionForce = sideFriction * springForce * slipSpeed / relSpeed; - if(slipSpeed > -data.§_-d7§ && slipSpeed < data.§_-d7§) + if(slipSpeed > -data.name_d7 && slipSpeed < data.name_d7) { - frictionForce *= slipSpeed / data.§_-d7§; + frictionForce *= slipSpeed / data.name_d7; 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_4W; } else if(fwdSpeed * throttle <= 0) { - fwdFriction = 0.5 * data.§_-4W§; + fwdFriction = 0.5 * data.name_4W; } else { - fwdFriction = data.§_-VW§; + fwdFriction = data.name_VW; } frictionForce = fwdFriction * springForce * fwdSpeed / relSpeed; - if(fwdSpeed > -data.§_-d7§ && fwdSpeed < data.§_-d7§) + if(fwdSpeed > -data.name_d7 && fwdSpeed < data.name_d7) { - frictionForce *= fwdSpeed / data.§_-d7§; + frictionForce *= fwdSpeed / data.name_d7; 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_Ko * this.name_Py.x; + _v.y = this.worldPos.y + data.name_Ko * this.name_Py.y; + _v.z = this.worldPos.z + data.name_Ko * this.name_Py.z; this.body.addWorldForce(_v,_force); } } diff --git a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyTrack.as b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyTrack.as index 4b87423..caf4c4c 100644 --- a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyTrack.as +++ b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyTrack.as @@ -17,11 +17,11 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy public var numRays:int; - public var §_-Ca§:int; + public var name_Ca:int; - public var §_-gt§:Number = 0; + public var name_gt:Number = 0; - private var §_-Ce§:Object; + private var name_Ce:Object; public function LegacyTrack(chassisBody:Body, matrix:Matrix4, wheels:Vector.) { @@ -75,7 +75,7 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy } return 0; }); - this.§_-Ce§ = {}; + this.name_Ce = {}; this.numRays = mainWheels.length; this.rays = new Vector.(this.numRays); position = new Vector3(); @@ -85,18 +85,18 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy matrix.transformPoint(mainWheel.position,position); ray = new LegacySuspensionRay(this.chassisBody,position,new Vector3(0,0,-1)); this.rays[i] = ray; - this.§_-Ce§[mainWheel.name] = ray; + this.name_Ce[mainWheel.name] = ray; } } public function getRayLastHitLength(name:String, maxRayLength:Number) : Number { - var ray:LegacySuspensionRay = this.§_-Ce§[name]; + var ray:LegacySuspensionRay = this.name_Ce[name]; if(ray == null) { return -1; } - return ray.§_-n3§ ? ray.§_-ZA§.t : maxRayLength; + return ray.name_n3 ? ray.name_ZA.t : maxRayLength; } public function addForces(dt:Number, throttle:Number, maxSpeed:Number, slipTerm:int, weight:Number, data:SuspensionData, brake:Boolean) : void @@ -105,28 +105,29 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy var springCoeff:Number = NaN; var mid:int = 0; var ray:LegacySuspensionRay = null; - this.§_-Ca§ = 0; + this.name_Ca = 0; for(i = 0; i < this.numRays; ) { if(LegacySuspensionRay(this.rays[i]).calculateIntersection(data.rayLength)) { - ++this.§_-Ca§; + ++this.name_Ca; } i++; } - if(this.§_-Ca§ > 0) + if(this.name_Ca > 0) { - this.§_-gt§ = 0; - springCoeff = 0.5 * weight / (this.§_-Ca§ * (data.rayLength - data.§_-Fw§)); - throttle *= this.numRays / this.§_-Ca§; + this.name_gt = 0; + springCoeff = 0.5 * weight / (this.name_Ca * (data.rayLength - data.name_Fw)); + throttle *= this.numRays / this.name_Ca; mid = this.numRays >> 1; - if(Boolean(this.numRays & 1 == 0)) + //if(Boolean(this.numRays & 1 == 0)) //XXX: I have no clue man + if((this.numRays & 1) == 0) { for(i = 0; i < this.numRays; i++) { ray = this.rays[i]; ray.addForce(dt,throttle,maxSpeed,i <= mid ? slipTerm : int(-slipTerm),springCoeff,data,brake); - this.§_-gt§ += ray.§_-bv§; + this.name_gt += ray.name_bv; } } else @@ -135,15 +136,15 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy { ray = this.rays[i]; ray.addForce(dt,throttle,maxSpeed,i < mid ? slipTerm : (i > mid ? int(-slipTerm) : 0),springCoeff,data,brake); - this.§_-gt§ += ray.§_-bv§; + this.name_gt += ray.name_bv; i++; } } - this.§_-gt§ /= this.§_-Ca§; + this.name_gt /= this.name_Ca; } else { - this.§_-gt§ = GameMathUtils.advanceValueTowards(this.§_-gt§,0,conSpeedDamping.value * dt); + this.name_gt = GameMathUtils.advanceValueTowards(this.name_gt,0,conSpeedDamping.value * dt); } } } diff --git a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyTrackedChassisComponent.as b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyTrackedChassisComponent.as index 7dcbd7a..de301a4 100644 --- a/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyTrackedChassisComponent.as +++ b/src/alternativa/tanks/game/entities/tank/physics/chassis/tracked/legacy/LegacyTrackedChassisComponent.as @@ -43,39 +43,39 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy public var body:Body; - public var §_-Ei§:LegacyTrack; + public var name_Ei:LegacyTrack; - public var §_-iA§:LegacyTrack; + public var name_iA:LegacyTrack; public var maxSpeed:Number = 0; - private var §_-fL§:ValueSmoother = new ValueSmoother(100,1000,0,0); + private var name_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 name_dr:ValueSmoother = new ValueSmoother(0.3,10,0,0); - private var §_-mt§:Number = 0; + private var name_mt:Number = 0; - private var §_-JJ§:Number = 0; + private var name_JJ:Number = 0; - private var §_-Tb§:Boolean; + private var name_Tb:Boolean; - private var §_-mq§:Boolean; + private var name_mq:Boolean; - private var §_-DC§:Vector.; + private var name_DC:Vector.; - public var §_-i1§:Vector.; + public var name_i1:Vector.; - public var §_-4Y§:Vector.; + public var name_4Y:Vector.; - public var §_-bi§:Vector3 = new Vector3(); + public var name_bi:Vector3 = new Vector3(); - public var §_-UQ§:Quaternion = new Quaternion(); + public var name_UQ:Quaternion = new Quaternion(); - public var §_-YH§:Matrix4 = new Matrix4(); + public var name_YH:Matrix4 = new Matrix4(); - public var §_-CF§:SuspensionData = new SuspensionData(); + public var name_CF:SuspensionData = new SuspensionData(); public var moveDirection:int; @@ -83,15 +83,15 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy private var hull:TankHull; - private var §_-Rg§:BodyCollisionData; + private var name_Rg:BodyCollisionData; - private var §_-z§:EventStates; + private var name_z:EventStates; - private var §case §:Boolean; + private var name_case:Boolean; private var turret:ITurretPhysicsComponent; - private var §_-CG§:Vector.; + private var name_CG:Vector.; private var mass:Number = 1; @@ -104,19 +104,19 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy super(); this.mass = mass; this.power = power; - this.§_-CG§ = new Vector.(); + this.name_CG = new Vector.(); this.body = new Body(1,Matrix3.IDENTITY); this.body.id = lastId++; - this.§_-DC§ = new Vector.(); - this.§_-4Y§ = new Vector.(); - this.§_-i1§ = new Vector.(); - this.§_-Rg§ = new BodyCollisionData(this.body,this.§_-i1§,this.§_-4Y§); + this.name_DC = new Vector.(); + this.name_4Y = new Vector.(); + this.name_i1 = new Vector.(); + this.name_Rg = new BodyCollisionData(this.body,this.name_i1,this.name_4Y); this.setHull(hull); } public function getBoundPoints() : Vector. { - return this.§_-CG§; + return this.name_CG; } public function getBody() : Body @@ -126,26 +126,26 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy public function getWheelDeltaZ(wheelName:String) : Number { - var lastHitLength:Number = this.§_-Ei§.getRayLastHitLength(wheelName,this.§_-CF§.rayLength); + var lastHitLength:Number = this.name_Ei.getRayLastHitLength(wheelName,this.name_CF.rayLength); if(lastHitLength < 0) { - lastHitLength = this.§_-iA§.getRayLastHitLength(wheelName,this.§_-CF§.rayLength); + lastHitLength = this.name_iA.getRayLastHitLength(wheelName,this.name_CF.rayLength); } if(lastHitLength < 0) { return 0; } - return this.§_-CF§.§_-Fw§ - lastHitLength; + return this.name_CF.name_Fw - lastHitLength; } public function getLeftTrackSpeed() : Number { - return this.§_-Ei§.§_-gt§; + return this.name_Ei.name_gt; } public function getRightTrackSpeed() : Number { - return this.§_-iA§.§_-gt§; + return this.name_iA.name_gt; } public function setHull(hull:TankHull) : void @@ -159,20 +159,20 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy return; } this.hull = hull; - this.createPrimitives(hull.§_-AE§,this.§_-DC§,CollisionGroup.TANK,CollisionGroup.TANK | CollisionGroup.STATIC); - this.createPrimitives(hull.§_-KR§,this.§_-i1§,CollisionGroup.TANK,CollisionGroup.TANK); + this.createPrimitives(hull.name_AE,this.name_DC,CollisionGroup.TANK,CollisionGroup.TANK | CollisionGroup.STATIC); + this.createPrimitives(hull.name_KR,this.name_i1,CollisionGroup.TANK,CollisionGroup.TANK); if(this.turret != null) { - this.turret.setTurretMountPoint(hull.§_-Rj§); + this.turret.setTurretMountPoint(hull.name_Rj); } this.resetCollisionPrimitives(); this.setBodyInertia(); var rayZ:Number = this.createTracks(); this.setSuspensionCollisionMask(CollisionGroup.TANK | CollisionGroup.STATIC); - this.§_-CF§.rayLength = 75; - this.§_-CF§.§_-Fw§ = rayZ - hull.§_-Sh§.z; - this.§_-CF§.§_-WZ§ = 1000; - this.body.material.§_-J1§ = 0.1; + this.name_CF.rayLength = 75; + this.name_CF.name_Fw = rayZ - hull.name_Sh.z; + this.name_CF.name_WZ = 1000; + this.body.material.name_J1 = 0.1; this.setChassisControls(this.moveDirection,this.turnDirection,true); var bb:BoundBox = new BoundBox(); this.calculateBoundBox(bb); @@ -184,11 +184,11 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy if(immediate) { this.maxTurnSpeed = value; - this.§_-dr§.reset(value); + this.name_dr.reset(value); } else { - this.§_-dr§.targetValue = value; + this.name_dr.targetValue = value; } } @@ -197,21 +197,21 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy if(immediate) { this.maxSpeed = value; - this.§_-fL§.reset(value); + this.name_fL.reset(value); } else { - this.§_-fL§.targetValue = value; + this.name_fL.targetValue = value; } } private function createTracks() : Number { var matrix:Matrix4 = new Matrix4(); - matrix.setPosition(this.hull.§_-Sh§); - this.§_-Ei§ = new LegacyTrack(this.body,matrix,this.hull.§_-EY§); - this.§_-iA§ = new LegacyTrack(this.body,matrix,this.hull.§_-M4§); - return this.§_-Ei§.rays[0].getRelativeZ(); + matrix.setPosition(this.hull.name_Sh); + this.name_Ei = new LegacyTrack(this.body,matrix,this.hull.name_EY); + this.name_iA = new LegacyTrack(this.body,matrix,this.hull.name_M4); + return this.name_Ei.rays[0].getRelativeZ(); } private function setBodyInertia() : void @@ -227,7 +227,7 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy } else { - _loc1_ = this.hull.§_-eh§.hs.clone(); + _loc1_ = this.hull.name_eh.hs.clone(); _loc1_.scale(2); this.body.invMass = 1 / this.mass; _loc2_ = _loc1_.x * _loc1_.x; @@ -244,7 +244,7 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy var collisionPrimitive:CollisionPrimitive = null; var primitiveTransform:Matrix4 = null; boundBox.infinity(); - for each(collisionPrimitive in this.§_-DC§) + for each(collisionPrimitive in this.name_DC) { primitiveTransform = collisionPrimitive.transform; collisionPrimitive.transform = collisionPrimitive.localTransform || Matrix4.IDENTITY; @@ -268,14 +268,14 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy var clientLog:IClientLog = null; clientLog = IClientLog(OSGi.getInstance().getService(IClientLog)); 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) + if(index < this.name_CG.length) { - point = this.§_-CG§[index]; + point = this.name_CG[index]; } if(point == null) { point = new Vector3(); - this.§_-CG§[index] = point; + this.name_CG[index] = point; } point.reset(x,y,z); } @@ -288,12 +288,12 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy { this.body.collisionPrimitives.clear(); } - this.addPrimitivesToBody(this.§_-DC§); - this.addPrimitivesToBody(this.§_-i1§); - this.§_-4Y§.length = 0; - for each(collisionPrimitive in this.§_-DC§) + this.addPrimitivesToBody(this.name_DC); + this.addPrimitivesToBody(this.name_i1); + this.name_4Y.length = 0; + for each(collisionPrimitive in this.name_DC) { - this.§_-4Y§.push(collisionPrimitive); + this.name_4Y.push(collisionPrimitive); } if(this.turret != null) { @@ -301,7 +301,7 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy this.addPrimitivesToBody(turretPrimitives); for each(collisionPrimitive in turretPrimitives) { - this.§_-4Y§.push(collisionPrimitive); + this.name_4Y.push(collisionPrimitive); } } } @@ -359,14 +359,14 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy private function setThrottle(throttleLeft:Number, throttleRight:Number) : void { - this.§_-mt§ = throttleLeft; - this.§_-JJ§ = throttleRight; + this.name_mt = throttleLeft; + this.name_JJ = throttleRight; } private function setBrakes(lb:Boolean, rb:Boolean) : void { - this.§_-Tb§ = lb; - this.§_-mq§ = rb; + this.name_Tb = lb; + this.name_mq = rb; } public function setChassisControls(moveDirection:int, turnDirection:int, reverseBackTurn:Boolean, force:Boolean = false) : Boolean @@ -444,7 +444,7 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy override public function removeFromGame(gameKernel:GameKernel) : void { - this.§_-z§.§_-Ah§.stop(); + this.name_z.name_Ah.stop(); this.removeFromScene(); gameKernel = null; } @@ -453,24 +453,24 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy { InterpolationComponent(entity.getComponentStrict(InterpolationComponent)).setChassisController(this); this.resetCollisionPrimitives(); - this.§_-z§ = new EventStates(); + this.name_z = new EventStates(); var respawnState:LegacyRespawnState = new LegacyRespawnState(this); - this.§_-z§.setEventState(entity,TankEvents.SET_RESPAWN_STATE,respawnState); - this.§_-z§.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,new LegacyActivatingState(this)); - this.§_-z§.setEventState(entity,TankEvents.SET_ACTIVE_STATE,new LegacyActiveState(this)); - this.§_-z§.setEventState(entity,TankEvents.SET_DEAD_STATE,new LegacyDeadState(this)); - this.§_-z§.§_-Ah§ = EmptyState.INSTANCE; + this.name_z.setEventState(entity,TankEvents.SET_RESPAWN_STATE,respawnState); + this.name_z.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,new LegacyActivatingState(this)); + this.name_z.setEventState(entity,TankEvents.SET_ACTIVE_STATE,new LegacyActiveState(this)); + this.name_z.setEventState(entity,TankEvents.SET_DEAD_STATE,new LegacyDeadState(this)); + this.name_z.name_Ah = EmptyState.INSTANCE; entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.onBattleFinished); } public function getTurretSkinMountPoint(point:Vector3) : void { - point.copy(this.hull.§_-EN§); + point.copy(this.hull.name_EN); } public function getInterpolatedMatrix() : Matrix4 { - return this.§_-YH§; + return this.name_YH; } public function setTurret(turret:ITurretPhysicsComponent) : void @@ -484,7 +484,7 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy public function getTurretMountPoint(point:Vector3) : void { - point.copy(this.hull.§_-Rj§); + point.copy(this.hull.name_Rj); } public function updateBeforeSimulation(physicsStep:int) : void @@ -492,30 +492,30 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy var d:Number = NaN; var limit:Number = NaN; var dt:Number = TimeSystem.timeDeltaSeconds; - if(this.maxSpeed != this.§_-fL§.targetValue) + if(this.maxSpeed != this.name_fL.targetValue) { - this.maxSpeed = this.§_-fL§.update(dt); + this.maxSpeed = this.name_fL.update(dt); } - if(this.maxTurnSpeed != this.§_-dr§.targetValue) + if(this.maxTurnSpeed != this.name_dr.targetValue) { - this.maxTurnSpeed = this.§_-dr§.update(dt); + this.maxTurnSpeed = this.name_dr.update(dt); } - var slipTerm:int = this.§_-mt§ > this.§_-JJ§ ? -1 : (this.§_-mt§ < this.§_-JJ§ ? 1 : 0); + var slipTerm:int = this.name_mt > this.name_JJ ? -1 : (this.name_mt < this.name_JJ ? 1 : 0); var world:PhysicsScene = 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§.addForces(dt,k * this.§_-mt§,this.maxSpeed,slipTerm,weight,this.§_-CF§,this.§_-Tb§); - this.§_-iA§.addForces(dt,k * this.§_-JJ§,this.maxSpeed,slipTerm,weight,this.§_-CF§,this.§_-mq§); + var weight:Number = this.mass * world.name_MX.length(); + var k:Number = this.name_mt != this.name_JJ && !(this.name_Tb || this.name_mq) && this.body.state.rotation.length() > this.maxTurnSpeed ? 0.1 : 1; + this.name_Ei.addForces(dt,k * this.name_mt,this.maxSpeed,slipTerm,weight,this.name_CF,this.name_Tb); + this.name_iA.addForces(dt,k * this.name_JJ,this.maxSpeed,slipTerm,weight,this.name_CF,this.name_mq); var baseMatrix:Matrix3 = this.body.baseMatrix; - if(this.§_-iA§.§_-Ca§ >= this.§_-iA§.numRays >> 1 || this.§_-Ei§.§_-Ca§ >= this.§_-Ei§.numRays >> 1) + if(this.name_iA.name_Ca >= this.name_iA.numRays >> 1 || this.name_Ei.name_Ca >= this.name_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(); + d = world.name_MX.x * baseMatrix.c + world.name_MX.y * baseMatrix.g + world.name_MX.z * baseMatrix.k; + limit = Math.SQRT1_2 * world.name_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; + _v.x = (baseMatrix.c * d - world.name_MX.x) * this.mass; + _v.y = (baseMatrix.g * d - world.name_MX.y) * this.mass; + _v.z = (baseMatrix.k * d - world.name_MX.z) * this.mass; this.body.addForce(_v); } } @@ -527,24 +527,24 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy public function interpolate(interpolationCoeff:Number) : void { - this.body.interpolate(interpolationCoeff,this.§_-bi§,this.§_-UQ§); - this.§_-UQ§.normalize(); - this.§_-UQ§.toMatrix4(this.§_-YH§); - this.§_-YH§.setPosition(this.§_-bi§); + this.body.interpolate(interpolationCoeff,this.name_bi,this.name_UQ); + this.name_UQ.normalize(); + this.name_UQ.toMatrix4(this.name_YH); + this.name_YH.setPosition(this.name_bi); } public function setSimpleCollisionMask(mask:int) : void { - for(var i:int = 0; i < this.§_-i1§.length; i++) + for(var i:int = 0; i < this.name_i1.length; i++) { - this.§_-i1§[i].collisionMask = mask; + this.name_i1[i].collisionMask = mask; } } public function setDetailedCollisionGroup(collisionGroup:int) : void { var collisionPrimitive:CollisionPrimitive = null; - for each(collisionPrimitive in this.§_-DC§) + for each(collisionPrimitive in this.name_DC) { collisionPrimitive.collisionGroup = collisionGroup; } @@ -559,8 +559,8 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy public function setSuspensionCollisionMask(collisionMask:int) : void { - this.§_-Ei§.collisionMask = collisionMask; - this.§_-iA§.collisionMask = collisionMask; + this.name_Ei.collisionMask = collisionMask; + this.name_iA.collisionMask = collisionMask; } public function addToScene() : void @@ -568,15 +568,15 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy var physicsSystem:PhysicsSystem = null; var physicsScene:PhysicsScene = null; var collisionDetector:ITanksCollisionDetector = null; - if(!this.§case §) + if(!this.name_case) { physicsSystem = this.gameKernel.getPhysicsSystem(); physicsScene = physicsSystem.getPhysicsScene(); collisionDetector = ITanksCollisionDetector(physicsScene.collisionDetector); physicsScene.addBody(this.body); - collisionDetector.addBodyCollisionData(this.§_-Rg§); + collisionDetector.addBodyCollisionData(this.name_Rg); physicsSystem.addControllerBefore(this); - this.§case § = true; + this.name_case = true; } } @@ -585,15 +585,15 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy var physicsSystem:PhysicsSystem = null; var physicsScene:PhysicsScene = null; var collisionDetector:ITanksCollisionDetector = null; - if(this.§case §) + if(this.name_case) { physicsSystem = this.gameKernel.getPhysicsSystem(); physicsScene = physicsSystem.getPhysicsScene(); collisionDetector = ITanksCollisionDetector(physicsScene.collisionDetector); physicsScene.removeBody(this.body); - collisionDetector.removeBodyCollisionData(this.§_-Rg§); + collisionDetector.removeBodyCollisionData(this.name_Rg); physicsSystem.removeControllerBefore(this); - this.§case § = false; + this.name_case = false; } } @@ -606,7 +606,7 @@ package alternativa.tanks.game.entities.tank.physics.chassis.tracked.legacy this.body.invMass = 1 / value; if(this.hull != null) { - PhysicsUtils.getBoxInvInertia(value,this.hull.§_-eh§.hs,this.body.invInertia); + PhysicsUtils.getBoxInvInertia(value,this.hull.name_eh.hs,this.body.invInertia); } } 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..da92a40 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_Fw:Number = 0; - public var §_-Ko§:Number = 0; + public var name_Ko:Number = 0; - public var §_-WZ§:Number = 0; + public var name_WZ:Number = 0; - public var §_-d7§:Number = 100; + public var name_d7:Number = 100; - public var §_-4W§:Number = 3; + public var name_4W:Number = 3; - public var §_-VW§:Number = 0.2; + public var name_VW: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..668ef44 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 name_JR:Number; private var turnDirection:int; private var direction:Number = 0; - private var §_-De§:Number = 0; + private var name_De:Number = 0; private var maxRotationSpeed:Number = 0; private var rotationAcceleration:Number = 0; - private var §_-nr§:Number = 0; + private var name_nr:Number = 0; - private var §_-fV§:Boolean; + private var name_fV: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 name_CH:Vector3; - private var §case §:Boolean; + private var name_case:Boolean; - private var §_-z§:EventStates; + private var name_z:EventStates; - private var §_-pP§:Matrix4 = new Matrix4(); + private var name_pP: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.name_CH = 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.name_CH); this.chassisComponent.setTurret(this); this.updatePrimitves(); InterpolationComponent(entity.getComponentStrict(InterpolationComponent)).setTurretController(this); - this.§_-z§ = new EventStates(); - this.§_-z§.setEventState(entity,TankEvents.SET_RESPAWN_STATE,new RespawnState(this)); + this.name_z = new EventStates(); + this.name_z.setEventState(entity,TankEvents.SET_RESPAWN_STATE,new RespawnState(this)); var activeState:ActiveState = new ActiveState(this); - this.§_-z§.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,activeState); - this.§_-z§.setEventState(entity,TankEvents.SET_ACTIVE_STATE,activeState); - this.§_-z§.setEventState(entity,TankEvents.SET_DEAD_STATE,new DeadState(this)); - this.§_-z§.§_-Ah§ = EmptyState.INSTANCE; + this.name_z.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,activeState); + this.name_z.setEventState(entity,TankEvents.SET_ACTIVE_STATE,activeState); + this.name_z.setEventState(entity,TankEvents.SET_DEAD_STATE,new DeadState(this)); + this.name_z.name_Ah = EmptyState.INSTANCE; entity.addEventHandler(GameEvents.BATTLE_FINISHED,this.onBattleFinished); } public function getBarrelCount() : int { - return this.turret.§_-O3§.length; + return this.turret.name_O3.length; } public function getGunData(barrelIndex:int, barrelOrigin:Vector3, gunDirection:Vector3, gunElevationAxis:Vector3) : void { var muzzlePoint:Vector3 = this.getLocalMuzzlePoint(barrelIndex); barrelOrigin.reset(muzzlePoint.x,0,muzzlePoint.z); - barrelOrigin.transform4(this.§_-pP§); - this.§_-pP§.getAxis(0,gunElevationAxis); - this.§_-pP§.getAxis(1,gunDirection); + barrelOrigin.transform4(this.name_pP); + this.name_pP.getAxis(0,gunElevationAxis); + this.name_pP.getAxis(1,gunDirection); } public function getGunMuzzleData(barrelIndex:int, muzzlePosition:Vector3, gunDirection:Vector3) : void { var localMuzzlePoint:Vector3 = this.getLocalMuzzlePoint(barrelIndex); - this.§_-pP§.transformPoint(localMuzzlePoint,muzzlePosition); - this.§_-pP§.getAxis(1,gunDirection); + this.name_pP.transformPoint(localMuzzlePoint,muzzlePosition); + this.name_pP.getAxis(1,gunDirection); } public function getGunMuzzleData2(barrelIndex:int, barrelOrigin:Vector3, muzzlePosition:Vector3) : void { var localMuzzlePoint:Vector3 = this.getLocalMuzzlePoint(barrelIndex); barrelOrigin.reset(localMuzzlePoint.x,0,localMuzzlePoint.z); - barrelOrigin.transform4(this.§_-pP§); - this.§_-pP§.transformPoint(localMuzzlePoint,muzzlePosition); + barrelOrigin.transform4(this.name_pP); + this.name_pP.transformPoint(localMuzzlePoint,muzzlePosition); } public function getBarrelLength(barrelIndex:int) : Number { - return this.turret.§_-O3§[barrelIndex].y; + return this.turret.name_O3[barrelIndex].y; } public function getInterpolatedTurretDirection() : Number { - return this.§_-JR§; + return this.name_JR; } 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.name_CH.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.name_fV = false; return true; } public function centerTurret(value:Boolean) : void { - this.§_-fV§ = value; + this.name_fV = 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.name_De = this.direction; + if(!this.name_fV && this.turnDirection == 0) { - this.§_-nr§ = 0; + this.name_nr = 0; } else { _loc2_ = 0.001 * physicsStep; - this.§_-nr§ += this.rotationAcceleration * _loc2_; - if(this.§_-nr§ > this.maxRotationSpeed) + this.name_nr += this.rotationAcceleration * _loc2_; + if(this.name_nr > this.maxRotationSpeed) { - this.§_-nr§ = this.maxRotationSpeed; + this.name_nr = this.maxRotationSpeed; } - if(this.§_-fV§) + if(this.name_fV) { - this.direction = GameMathUtils.advanceValueTowards(this.direction,0,this.§_-nr§ * _loc2_); + this.direction = GameMathUtils.advanceValueTowards(this.direction,0,this.name_nr * _loc2_); if(this.direction == 0) { - this.§_-fV§ = false; + this.name_fV = false; } this.updatePrimitves(); } else { - this.setTurretDirection(this.direction + this.turnDirection * this.§_-nr§ * _loc2_); + this.setTurretDirection(this.direction + this.turnDirection * this.name_nr * _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.name_De; if(angleDiff > Math.PI) { angleDiff = 2 * Math.PI - angleDiff; - this.§_-JR§ = this.§_-De§ - angleDiff * interpolationCoeff; - if(this.§_-JR§ < -Math.PI) + this.name_JR = this.name_De - angleDiff * interpolationCoeff; + if(this.name_JR < -Math.PI) { - this.§_-JR§ += 2 * Math.PI; + this.name_JR += 2 * Math.PI; } } else if(angleDiff < -Math.PI) { angleDiff += 2 * Math.PI; - this.§_-JR§ = this.§_-De§ + angleDiff * interpolationCoeff; - if(this.§_-JR§ > Math.PI) + this.name_JR = this.name_De + angleDiff * interpolationCoeff; + if(this.name_JR > Math.PI) { - this.§_-JR§ -= 2 * Math.PI; + this.name_JR -= 2 * Math.PI; } } else { - this.§_-JR§ = this.§_-De§ * (1 - interpolationCoeff) + this.direction * interpolationCoeff; + this.name_JR = this.name_De * (1 - interpolationCoeff) + this.direction * interpolationCoeff; } - this.§_-pP§.toIdentity(); - this.§_-pP§.setRotationMatrix(0,0,this.§_-JR§); - this.§_-pP§.setPosition(this.§_-CH§); - this.§_-pP§.append(this.chassisComponent.getInterpolatedMatrix()); + this.name_pP.toIdentity(); + this.name_pP.setRotationMatrix(0,0,this.name_JR); + this.name_pP.setPosition(this.name_CH); + this.name_pP.append(this.chassisComponent.getInterpolatedMatrix()); } internal function addToScene() : void { - if(!this.§case §) + if(!this.name_case) { this.gameKernel.getPhysicsSystem().addControllerBefore(this); - this.§case § = true; + this.name_case = true; } } internal function removeFromScene() : void { - if(this.§case §) + if(this.name_case) { this.gameKernel.getPhysicsSystem().removeControllerBefore(this); - this.§case § = false; + this.name_case = false; } } private function getLocalMuzzlePoint(barrelIndex:int) : Vector3 { - return this.turret.§_-O3§[barrelIndex]; + return this.turret.name_O3[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.name_Of) { 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.name_CH.x; + m.h = this.name_CH.y; + m.l = this.name_CH.z; m.prepend(collisionPrimitive.m); } } diff --git a/src/alternativa/tanks/game/physics/TanksCollisionDetector.as b/src/alternativa/tanks/game/physics/TanksCollisionDetector.as index f445c5e..d77711f 100644 --- a/src/alternativa/tanks/game/physics/TanksCollisionDetector.as +++ b/src/alternativa/tanks/game/physics/TanksCollisionDetector.as @@ -18,37 +18,37 @@ package alternativa.tanks.game.physics public class TanksCollisionDetector implements ITanksCollisionDetector { - public var §_-bw§:CollisionKdTree; + public var name_bw:CollisionKdTree; public var threshold:Number = 0.0001; - private var §_-P6§:Object; + private var name_P6:Object; - private var §_-Wj§:Vector.; + private var name_Wj:Vector.; - private var §_-LK§:int; + private var name_LK:int; - private var §_-By§:Vector.; + private var name_By:Vector.; private var numBodies:int; - private var §_-qC§:MinMax = new MinMax(); + private var name_qC:MinMax = new MinMax(); - private var §_-k8§:Vector3 = new Vector3(); + private var name_k8:Vector3 = new Vector3(); - private var §_-0q§:Vector3 = new Vector3(); + private var name_0q:Vector3 = new Vector3(); - private var §_-2P§:RayHit = new RayHit(); + private var name_2P:RayHit = new RayHit(); private var _rayAABB:BoundBox = new BoundBox(); public function TanksCollisionDetector() { super(); - this.§_-bw§ = new CollisionKdTree(); - this.§_-By§ = new Vector.(); - this.§_-Wj§ = new Vector.(); - this.§_-P6§ = new Object(); + this.name_bw = new CollisionKdTree(); + this.name_By = new Vector.(); + this.name_Wj = new Vector.(); + this.name_P6 = new Object(); this.addCollider(CollisionPrimitive.BOX,CollisionPrimitive.BOX,new BoxBoxCollider()); this.addCollider(CollisionPrimitive.BOX,CollisionPrimitive.RECT,new BoxRectCollider()); this.addCollider(CollisionPrimitive.BOX,CollisionPrimitive.TRIANGLE,new BoxTriangleCollider()); @@ -66,47 +66,47 @@ package alternativa.tanks.game.physics { } - public function prepareForRaycasts(collisionPrimitives:Vector., boundBox:BoundBox = null) : void + public function buildKdTree(collisionPrimitives:Vector., boundBox:BoundBox = null) : void { - this.§_-bw§.createTree(collisionPrimitives,boundBox); + this.name_bw.createTree(collisionPrimitives,boundBox); } public function addBodyCollisionData(tankPhysicsEntry:BodyCollisionData) : void { - if(this.§_-Wj§.indexOf(tankPhysicsEntry) >= 0) + if(this.name_Wj.indexOf(tankPhysicsEntry) >= 0) { throw new Error("Tank entry already exists"); } - var _loc2_:* = this.§_-LK§++; - this.§_-Wj§[_loc2_] = tankPhysicsEntry; + var _loc2_:* = this.name_LK++; + this.name_Wj[_loc2_] = tankPhysicsEntry; } public function removeBodyCollisionData(tankPhysicsEntry:BodyCollisionData) : void { - var index:Number = Number(this.§_-Wj§.indexOf(tankPhysicsEntry)); + var index:Number = Number(this.name_Wj.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.name_Wj[index] = this.name_Wj[--this.name_LK]; + this.name_Wj[this.name_LK] = null; } public function addBody(body:Body) : void { var _loc2_:* = this.numBodies++; - this.§_-By§[_loc2_] = body; + this.name_By[_loc2_] = body; } public function removeBody(body:Body) : void { - var index:int = int(this.§_-By§.indexOf(body)); + var index:int = int(this.name_By.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_By[index] = this.name_By[--this.numBodies]; + this.name_By[this.numBodies] = null; } public function getObjectsInRadius(center:Vector3, radius:Number, filter:IRadiusQueryFilter) : Vector. @@ -119,9 +119,9 @@ package alternativa.tanks.game.physics 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.name_LK; ) { - tankPhysicsEntry = this.§_-Wj§[i]; + tankPhysicsEntry = this.name_Wj[i]; position = tankPhysicsEntry.body.state.position; dx = position.x - center.x; dy = position.y - center.y; @@ -129,7 +129,7 @@ package alternativa.tanks.game.physics distance = dx * dx + dy * dy + dz * dz; if(distance < radius) { - if(filter == null || Boolean(filter.§_-cb§(center,tankPhysicsEntry.body))) + if(filter == null || Boolean(filter.acceptBody(center,tankPhysicsEntry.body))) { if(result == null) { @@ -154,14 +154,14 @@ package alternativa.tanks.game.physics { return false; } - var collider:ICollider = this.§_-P6§[prim1.type | prim2.type]; + var collider:ICollider = this.name_P6[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.acceptPrimitivesCollision(prim1,prim2)) { return false; } - return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)); + return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.acceptPrimitivesCollision(prim2,prim1)); } return false; } @@ -180,14 +180,14 @@ package alternativa.tanks.game.physics { return false; } - var collider:ICollider = this.§_-P6§[prim1.type | prim2.type]; + var collider:ICollider = this.name_P6[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.acceptPrimitivesCollision(prim1,prim2)) { return false; } - return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.§_-eZ§(prim2,prim1)); + return !(prim2.postCollisionFilter != null && !prim2.postCollisionFilter.acceptPrimitivesCollision(prim2,prim1)); } return false; } @@ -195,16 +195,16 @@ package alternativa.tanks.game.physics public function raycast(origin:Vector3, dir:Vector3, collisionMask:int, maxTime:Number, filter:IRaycastFilter, result:RayHit) : Boolean { var hasStaticIntersection:Boolean = this.raycastStatic(origin,dir,collisionMask,maxTime,filter,result); - var hasDynamicIntersection:Boolean = this.raycastTanks(origin,dir,collisionMask,maxTime,filter,this.§_-2P§); + var hasDynamicIntersection:Boolean = this.raycastTanks(origin,dir,collisionMask,maxTime,filter,this.name_2P); if(!(hasDynamicIntersection || hasStaticIntersection)) { return false; } if(hasDynamicIntersection && hasStaticIntersection) { - if(result.t > this.§_-2P§.t) + if(result.t > this.name_2P.t) { - result.copy(this.§_-2P§); + result.copy(this.name_2P); } return true; } @@ -212,49 +212,49 @@ package alternativa.tanks.game.physics { return true; } - result.copy(this.§_-2P§); + result.copy(this.name_2P); return true; } public function raycastStatic(origin:Vector3, dir:Vector3, collisionMask:int, maxTime:Number, filter:IRaycastFilter, result:RayHit) : Boolean { - if(!this.getRayBoundBoxIntersection(origin,dir,this.§_-bw§.§_-5H§.boundBox,this.§_-qC§)) + if(!this.getRayBoundBoxIntersection(origin,dir,this.name_bw.name_5H.boundBox,this.name_qC)) { return false; } - if(this.§_-qC§.max < 0 || this.§_-qC§.min > maxTime) + if(this.name_qC.max < 0 || this.name_qC.min > maxTime) { return false; } - if(this.§_-qC§.min <= 0) + if(this.name_qC.min <= 0) { - this.§_-qC§.min = 0; - this.§_-0q§.x = origin.x; - this.§_-0q§.y = origin.y; - this.§_-0q§.z = origin.z; + this.name_qC.min = 0; + this.name_0q.x = origin.x; + this.name_0q.y = origin.y; + this.name_0q.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.name_0q.x = origin.x + this.name_qC.min * dir.x; + this.name_0q.y = origin.y + this.name_qC.min * dir.y; + this.name_0q.z = origin.z + this.name_qC.min * dir.z; } - if(this.§_-qC§.max > maxTime) + if(this.name_qC.max > maxTime) { - this.§_-qC§.max = maxTime; + this.name_qC.max = maxTime; } - var hasIntersection:Boolean = this.testRayAgainstNode(this.§_-bw§.§_-5H§,origin,this.§_-0q§,dir,collisionMask,this.§_-qC§.min,this.§_-qC§.max,filter,result); + var hasIntersection:Boolean = this.testRayAgainstNode(this.name_bw.name_5H,origin,this.name_0q,dir,collisionMask,this.name_qC.min,this.name_qC.max,filter,result); return hasIntersection ? result.t <= maxTime : false; } public function testPrimitiveTreeCollision(primitive:CollisionPrimitive) : Boolean { - return this.testPrimitiveNodeCollision(primitive,this.§_-bw§.§_-5H§); + return this.testPrimitiveNodeCollision(primitive,this.name_bw.name_5H); } private function addCollider(type1:int, type2:int, collider:ICollider) : void { - this.§_-P6§[type1 | type2] = collider; + this.name_P6[type1 | type2] = collider; } private function getTankContacts(contact:Contact) : Contact @@ -264,18 +264,18 @@ package alternativa.tanks.game.physics var listItem:CollisionPrimitiveListItem = null; var j:int = 0; var otherTankEntry:BodyCollisionData = null; - for(var i:int = 0; i < this.§_-LK§; i++) + for(var i:int = 0; i < this.name_LK; i++) { - tankEntry = this.§_-Wj§[i]; + tankEntry = this.name_Wj[i]; body = tankEntry.body; for(listItem = body.collisionPrimitives.head; listItem != null; ) { - contact = this.getPrimitiveNodeCollisions(this.§_-bw§.§_-5H§,listItem.primitive,contact); + contact = this.getPrimitiveNodeCollisions(this.name_bw.name_5H,listItem.primitive,contact); listItem = listItem.next; } - for(j = i + 1; j < this.§_-LK§; ) + for(j = i + 1; j < this.name_LK; ) { - otherTankEntry = this.§_-Wj§[j]; + otherTankEntry = this.name_Wj[j]; if(body.aabb.intersects(otherTankEntry.body.aabb,0.1)) { contact = this.getTanksCollision(tankEntry,otherTankEntry,contact); @@ -371,7 +371,7 @@ package alternativa.tanks.game.physics var i:int = 0; if(node.indices != null) { - primitives = this.§_-bw§.§_-8A§; + primitives = this.name_bw.name_8A; indices = node.indices; for(i = indices.length - 1; i >= 0; ) { @@ -402,15 +402,15 @@ package alternativa.tanks.game.physics } if(min < node.coord) { - contact = this.getPrimitiveNodeCollisions(node.§_-Gm§,primitive,contact); + contact = this.getPrimitiveNodeCollisions(node.name_Gm,primitive,contact); } if(max > node.coord) { - contact = this.getPrimitiveNodeCollisions(node.§_-75§,primitive,contact); + contact = this.getPrimitiveNodeCollisions(node.name_75,primitive,contact); } - if(node.§_-da§ != null && min < node.coord && max > node.coord) + if(node.name_da != null && min < node.coord && max > node.coord) { - contact = this.getPrimitiveNodeCollisions(node.§_-da§.§_-5H§,primitive,contact); + contact = this.getPrimitiveNodeCollisions(node.name_da.name_5H,primitive,contact); } return contact; } @@ -424,7 +424,7 @@ package alternativa.tanks.game.physics var i:int = 0; if(node.indices != null) { - primitives = this.§_-bw§.§_-8A§; + primitives = this.name_bw.name_8A; indices = node.indices; for(i = indices.length - 1; i >= 0; ) { @@ -453,23 +453,23 @@ package alternativa.tanks.game.physics min = Number(primitive.aabb.minZ); max = Number(primitive.aabb.maxZ); } - if(node.§_-da§ != null && min < node.coord && max > node.coord) + if(node.name_da != null && min < node.coord && max > node.coord) { - if(this.testPrimitiveNodeCollision(primitive,node.§_-da§.§_-5H§)) + if(this.testPrimitiveNodeCollision(primitive,node.name_da.name_5H)) { return true; } } if(min < node.coord) { - if(this.testPrimitiveNodeCollision(primitive,node.§_-Gm§)) + if(this.testPrimitiveNodeCollision(primitive,node.name_Gm)) { return true; } } if(max > node.coord) { - if(this.testPrimitiveNodeCollision(primitive,node.§_-75§)) + if(this.testPrimitiveNodeCollision(primitive,node.name_75)) { return true; } @@ -519,11 +519,11 @@ package alternativa.tanks.game.physics 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.name_LK; i++) { - tankPhysicsEntry = this.§_-Wj§[i]; + tankPhysicsEntry = this.name_Wj[i]; body = tankPhysicsEntry.body; - if(!(filter != null && !filter.§_-0w§(body.collisionPrimitives.head.primitive))) + if(!(filter != null && !filter.acceptRayHit(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 alternativa.tanks.game.physics } else { - t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); + t = Number(primitive.raycast(origin,dir,this.threshold,this.name_k8)); 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.name_k8.x; + result.normal.y = this.name_k8.y; + result.normal.z = this.name_k8.z; } collisionPrimitiveListItem = collisionPrimitiveListItem.next; } @@ -656,7 +656,7 @@ package alternativa.tanks.game.physics var splitNode:CollisionKdNode = null; var i:int = 0; var primitive:CollisionPrimitive = null; - if(node.indices != null && this.getRayNodeIntersection(origin,dir,collisionMask,this.§_-bw§.§_-8A§,node.indices,filter,result)) + if(node.indices != null && this.getRayNodeIntersection(origin,dir,collisionMask,this.name_bw.name_8A,node.indices,filter,result)) { return true; } @@ -675,7 +675,7 @@ package alternativa.tanks.game.physics { splitTime = (node.coord - origin.x) / dir.x; } - currChildNode = localOrigin.x < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.x < node.coord ? node.name_Gm : node.name_75; break; case 1: if(dir.y > -this.threshold && dir.y < this.threshold) @@ -686,7 +686,7 @@ package alternativa.tanks.game.physics { splitTime = (node.coord - origin.y) / dir.y; } - currChildNode = localOrigin.y < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.y < node.coord ? node.name_Gm : node.name_75; break; case 2: if(dir.z > -this.threshold && dir.z < this.threshold) @@ -697,7 +697,7 @@ package alternativa.tanks.game.physics { splitTime = (node.coord - origin.z) / dir.z; } - currChildNode = localOrigin.z < node.coord ? node.§_-Gm§ : node.§_-75§; + currChildNode = localOrigin.z < node.coord ? node.name_Gm : node.name_75; } if(splitTime < t1 || splitTime > t2) { @@ -708,24 +708,24 @@ package alternativa.tanks.game.physics { 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.name_0q.x = origin.x + splitTime * dir.x; + this.name_0q.y = origin.y + splitTime * dir.y; + this.name_0q.z = origin.z + splitTime * dir.z; + if(node.name_da != null) { - splitNode = node.§_-da§.§_-5H§; + splitNode = node.name_da.name_5H; while(splitNode != null && splitNode.axis != -1) { switch(splitNode.axis) { case 0: - splitNode = this.§_-0q§.x < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§; + splitNode = this.name_0q.x < splitNode.coord ? splitNode.name_Gm : splitNode.name_75; break; case 1: - splitNode = this.§_-0q§.y < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§; + splitNode = this.name_0q.y < splitNode.coord ? splitNode.name_Gm : splitNode.name_75; break; case 2: - splitNode = this.§_-0q§.z < splitNode.coord ? splitNode.§_-Gm§ : splitNode.§_-75§; + splitNode = this.name_0q.z < splitNode.coord ? splitNode.name_Gm : splitNode.name_75; break; } } @@ -733,15 +733,15 @@ package alternativa.tanks.game.physics { for(i = splitNode.indices.length - 1; i >= 0; ) { - primitive = this.§_-bw§.§_-8A§[splitNode.indices[i]]; + primitive = this.name_bw.name_8A[splitNode.indices[i]]; if((primitive.collisionGroup & collisionMask) != 0) { - if(!(filter != null && !filter.§_-0w§(primitive))) + if(!(filter != null && !filter.acceptRayHit(primitive))) { result.t = primitive.raycast(origin,dir,this.threshold,result.normal); if(result.t >= 0) { - result.position.copy(this.§_-0q§); + result.position.copy(this.name_0q); result.primitive = primitive; return true; } @@ -751,7 +751,7 @@ package alternativa.tanks.game.physics } } } - return this.testRayAgainstNode(currChildNode == node.§_-Gm§ ? node.§_-75§ : node.§_-Gm§,origin,this.§_-0q§,dir,collisionMask,splitTime,t2,filter,result); + return this.testRayAgainstNode(currChildNode == node.name_Gm ? node.name_75 : node.name_Gm,origin,this.name_0q,dir,collisionMask,splitTime,t2,filter,result); } private function getRayNodeIntersection(origin:Vector3, dir:Vector3, collisionMask:int, primitives:Vector., indices:Vector., filter:IRaycastFilter, intersection:RayHit) : Boolean @@ -765,16 +765,16 @@ package alternativa.tanks.game.physics primitive = primitives[indices[i]]; if((primitive.collisionGroup & collisionMask) != 0) { - if(!(filter != null && !filter.§_-0w§(primitive))) + if(!(filter != null && !filter.acceptRayHit(primitive))) { - t = Number(primitive.raycast(origin,dir,this.threshold,this.§_-k8§)); + t = Number(primitive.raycast(origin,dir,this.threshold,this.name_k8)); 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.name_k8.x; + intersection.normal.y = this.name_k8.y; + intersection.normal.z = this.name_k8.z; } } } diff --git a/src/alternativa/tanks/game/physics/collision/uniformgrid/UniformGridCollisionDetector.as b/src/alternativa/tanks/game/physics/collision/uniformgrid/UniformGridCollisionDetector.as index 26c4fa9..ed6fffe 100644 --- a/src/alternativa/tanks/game/physics/collision/uniformgrid/UniformGridCollisionDetector.as +++ b/src/alternativa/tanks/game/physics/collision/uniformgrid/UniformGridCollisionDetector.as @@ -30,13 +30,13 @@ package alternativa.tanks.game.physics.collision.uniformgrid private var cellSize:Number; - private var §_-aq§:BoundBox = new BoundBox(); + private var name_aq:BoundBox = new BoundBox(); private var denseArray:Vector.; private var denseCellIndices:Vector.; - private var §_-00§:int; + private var name_00:int; private var numCellsX:int; @@ -44,38 +44,38 @@ package alternativa.tanks.game.physics.collision.uniformgrid private var numCellsZ:int; - private var §_-Sp§:int; + private var name_Sp:int; - private var §_-48§:Vector.; + private var name_48:Vector.; - private var §_-81§:int; + private var name_81:int; - private var §_-3Q§:Vector.; + private var name_3Q:Vector.; - private var §_-VV§:int; + private var name_VV:int; private var bodyCellEntries:Vector.; - private var §_-P6§:Object; + private var name_P6:Object; - private var §_-SI§:RaycastCellVisitor; + private var name_SI:RaycastCellVisitor; - private var §_-Qp§:OccupiedCellIndex; + private var name_Qp:OccupiedCellIndex; - private var §_-WJ§:Boolean; + private var name_WJ:Boolean; public function UniformGridCollisionDetector() { super(); - this.§_-3Q§ = new Vector.(); - this.§_-SI§ = new RaycastCellVisitor(); + this.name_3Q = new Vector.(); + this.name_SI = new RaycastCellVisitor(); this.initColliders(); this.initPairBitArray(); } private function addCollider(type1:int, type2:int, collider:ICollider) : void { - this.§_-P6§[type1 | type2] = collider; + this.name_P6[type1 | type2] = collider; } public function addBodyCollisionData(bodyCollisionData:BodyCollisionData) : void @@ -88,10 +88,10 @@ package alternativa.tanks.game.physics.collision.uniformgrid 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.name_VV; + var _loc3_:* = this.name_VV++; + this.name_3Q[_loc3_] = bodyCollisionGridData; + this.name_WJ = true; } public function removeBodyCollisionData(bodyCollisionData:BodyCollisionData) : void @@ -101,13 +101,13 @@ package alternativa.tanks.game.physics.collision.uniformgrid { throw new Error("Body collision data not found"); } - --this.§_-VV§; - var lastBodyEntry:BodyCollisionGridData = this.§_-3Q§[this.§_-VV§]; + --this.name_VV; + var lastBodyEntry:BodyCollisionGridData = this.name_3Q[this.name_VV]; lastBodyEntry.index = index; - BodyCollisionGridData(this.§_-3Q§[index]).destroy(); - this.§_-3Q§[index] = lastBodyEntry; - this.§_-3Q§[this.§_-VV§] = null; - this.§_-WJ§ = true; + BodyCollisionGridData(this.name_3Q[index]).destroy(); + this.name_3Q[index] = lastBodyEntry; + this.name_3Q[this.name_VV] = null; + this.name_WJ = true; } public function prepareForRaycasts() : void @@ -122,7 +122,7 @@ package alternativa.tanks.game.physics.collision.uniformgrid public function getGridBoundBox() : BoundBox { - return this.§_-aq§.clone(); + return this.name_aq.clone(); } public function getNumCellsX() : int @@ -142,7 +142,7 @@ package alternativa.tanks.game.physics.collision.uniformgrid public function getMaxCellPrimitiveCount() : int { - return this.§_-Sp§; + return this.name_Sp; } public function getNumlPrimitivesInCell(x:int, y:int, z:int) : int @@ -172,12 +172,12 @@ package alternativa.tanks.game.physics.collision.uniformgrid 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.name_aq.minX) / this.cellSize,0,this.numCellsX - 1); + var imax:int = this.clamp((center.x + radius - this.name_aq.minX) / this.cellSize,0,this.numCellsX - 1); + var jmin:int = this.clamp((center.y - radius - this.name_aq.minY) / this.cellSize,0,this.numCellsY - 1); + var jmax:int = this.clamp((center.y + radius - this.name_aq.minY) / this.cellSize,0,this.numCellsY - 1); + var kmin:int = this.clamp((center.z - radius - this.name_aq.minZ) / this.cellSize,0,this.numCellsZ - 1); + var kmax:int = this.clamp((center.z + radius - this.name_aq.minZ) / this.cellSize,0,this.numCellsZ - 1); var ts:int = int(++timestamp); var radiusSqr:Number = radius * radius; for(var i:int = imin; i <= imax; i++) @@ -223,9 +223,9 @@ package alternativa.tanks.game.physics.collision.uniformgrid { var bodyCollisionData:BodyCollisionGridData = null; this.fillDynamicBodyCells(); - for(var i:int = 0; i < this.§_-VV§; i++) + for(var i:int = 0; i < this.name_VV; i++) { - bodyCollisionData = this.§_-3Q§[i]; + bodyCollisionData = this.name_3Q[i]; contacts = this.getBodyStaticContacts(bodyCollisionData,contacts); } return this.getDynamicContacts(contacts); @@ -233,31 +233,31 @@ package alternativa.tanks.game.physics.collision.uniformgrid private function initRaycastCellVisitor() : 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.name_SI.denseArray = this.denseArray; + this.name_SI.denseCellIndices = this.denseCellIndices; + this.name_SI.numCellsX = this.numCellsX; + this.name_SI.numCellsY = this.numCellsY; + this.name_SI.numCellsZ = this.numCellsZ; } private function setupGridParameters(staticPrimitives:Vector., cellSize:Number) : void { var collisionPrimitive:CollisionPrimitive = null; this.cellSize = cellSize; - this.§_-aq§.infinity(); + this.name_aq.infinity(); for each(collisionPrimitive in staticPrimitives) { - this.§_-aq§.addBoundBox(collisionPrimitive.calculateAABB()); + this.name_aq.addBoundBox(collisionPrimitive.calculateAABB()); } - this.§_-aq§.increase(cellSize + EPSILON); - this.numCellsX = int(this.§_-aq§.getSizeX() / cellSize) + 1; - this.numCellsY = int(this.§_-aq§.getSizeY() / cellSize) + 1; - this.numCellsZ = int(this.§_-aq§.getSizeZ() / 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.name_aq.increase(cellSize + EPSILON); + this.numCellsX = int(this.name_aq.getSizeX() / cellSize) + 1; + this.numCellsY = int(this.name_aq.getSizeY() / cellSize) + 1; + this.numCellsZ = int(this.name_aq.getSizeZ() / cellSize) + 1; + this.name_00 = this.numCellsX * this.numCellsY * this.numCellsZ; + this.name_aq.maxX = this.name_aq.minX + this.numCellsX * cellSize; + this.name_aq.maxY = this.name_aq.minY + this.numCellsY * cellSize; + this.name_aq.maxZ = this.name_aq.minZ + this.numCellsZ * cellSize; + this.bodyCellEntries = new Vector.(this.name_00); } private function prepareDenseArray(staticPrimitives:Vector.) : void @@ -280,14 +280,14 @@ package alternativa.tanks.game.physics.collision.uniformgrid var cellIndex:int = 0; var denseCellIndex:int = 0; var cellCounters:Vector. = this.calculateNumPrimitivesForEachCell(staticPrimitives); - this.§_-Sp§ = 0; - this.denseCellIndices = new Vector.(this.§_-00§); - for(index = 0; index < this.§_-00§; index++) + this.name_Sp = 0; + this.denseCellIndices = new Vector.(this.name_00); + for(index = 0; index < this.name_00; index++) { numCellPrimitives = cellCounters[index]; - if(numCellPrimitives > this.§_-Sp§) + if(numCellPrimitives > this.name_Sp) { - this.§_-Sp§ = numCellPrimitives; + this.name_Sp = numCellPrimitives; } denseArraySize += numCellPrimitives; this.denseCellIndices[index] = numCellPrimitives << 24 | lastIndex; @@ -300,12 +300,12 @@ package alternativa.tanks.game.physics.collision.uniformgrid { 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.name_aq.minX) / this.cellSize; + imax = (bb.maxX - this.name_aq.minX) / this.cellSize; + jmin = (bb.minY - this.name_aq.minY) / this.cellSize; + jmax = (bb.maxY - this.name_aq.minY) / this.cellSize; + kmin = (bb.minZ - this.name_aq.minZ) / this.cellSize; + kmax = (bb.maxZ - this.name_aq.minZ) / this.cellSize; for(i = imin; i <= imax; i++) { for(j = jmin; j <= jmax; j++) @@ -335,17 +335,17 @@ package alternativa.tanks.game.physics.collision.uniformgrid 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.name_00); 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.name_aq.minX) / this.cellSize; + imax = (bb.maxX - this.name_aq.minX) / this.cellSize; + jmin = (bb.minY - this.name_aq.minY) / this.cellSize; + jmax = (bb.maxY - this.name_aq.minY) / this.cellSize; + kmin = (bb.minZ - this.name_aq.minZ) / this.cellSize; + kmax = (bb.maxZ - this.name_aq.minZ) / this.cellSize; for(i = imin; i <= imax; i++) { for(j = jmin; j <= jmax; j++) @@ -378,8 +378,8 @@ package alternativa.tanks.game.physics.collision.uniformgrid var k:int = 0; var cellIndex:int = 0; this.clearPairBits(); - var numBodies:int = int(this.§_-3Q§.length); - for(var occupiedCell:OccupiedCellIndex = this.§_-Qp§; occupiedCell != null; ) + var numBodies:int = int(this.name_3Q.length); + for(var occupiedCell:OccupiedCellIndex = this.name_Qp; occupiedCell != null; ) { for(currentBodyCellEntry = this.bodyCellEntries[occupiedCell.index]; currentBodyCellEntry != null; ) { @@ -443,9 +443,9 @@ package alternativa.tanks.game.physics.collision.uniformgrid } bitIndex = min * (2 * numBodies - min - 3) / 2 + max - 1; mask = 1 << (bitIndex & 0x1F); - if((this.§_-48§[bitIndex >>> 5] & mask) == 0) + if((this.name_48[bitIndex >>> 5] & mask) == 0) { - this.§_-48§[bitIndex >>> 5] |= mask; + this.name_48[bitIndex >>> 5] |= mask; body2 = cellStartEntry.data.body; if(body2.aabb.intersects(body.aabb,EPSILON)) { @@ -513,9 +513,9 @@ package alternativa.tanks.game.physics.collision.uniformgrid private function clearPairBits() : void { - for(var i:int = 0; i < this.§_-81§; i++) + for(var i:int = 0; i < this.name_81; i++) { - this.§_-48§[i] = 0; + this.name_48[i] = 0; } } @@ -574,17 +574,17 @@ package alternativa.tanks.game.physics.collision.uniformgrid public function raycast(origin:Vector3, direction:Vector3, collisionMask:int, maxTime:Number, filter:IRaycastFilter, result:RayHit) : Boolean { - if(this.§_-WJ§) + if(this.name_WJ) { this.fillDynamicBodyCells(); } - this.§_-SI§.collisionMask = collisionMask; - this.§_-SI§.filter = filter; - this.§_-SI§.result = result; - this.§_-SI§.bodyCellEntries = this.bodyCellEntries; - this.doRaycast(origin,direction,maxTime,this.§_-SI§); - this.§_-SI§.clear(); - if(this.§_-SI§.hasHit) + this.name_SI.collisionMask = collisionMask; + this.name_SI.filter = filter; + this.name_SI.result = result; + this.name_SI.bodyCellEntries = this.bodyCellEntries; + this.doRaycast(origin,direction,maxTime,this.name_SI); + this.name_SI.clear(); + if(this.name_SI.hasHit) { if(result.t < maxTime) { @@ -597,12 +597,12 @@ package alternativa.tanks.game.physics.collision.uniformgrid public function raycastStatic(origin:Vector3, direction:Vector3, collisionMask:int, maxTime:Number, filter:IRaycastFilter, result:RayHit) : Boolean { - this.§_-SI§.collisionMask = collisionMask; - this.§_-SI§.filter = filter; - this.§_-SI§.result = result; - this.doRaycast(origin,direction,maxTime,this.§_-SI§); - this.§_-SI§.clear(); - if(this.§_-SI§.hasHit) + this.name_SI.collisionMask = collisionMask; + this.name_SI.filter = filter; + this.name_SI.result = result; + this.doRaycast(origin,direction,maxTime,this.name_SI); + this.name_SI.clear(); + if(this.name_SI.hasHit) { if(result.t < maxTime) { @@ -619,7 +619,7 @@ package alternativa.tanks.game.physics.collision.uniformgrid { return false; } - var collider:ICollider = this.§_-P6§[prim1.type | prim2.type]; + var collider:ICollider = this.name_P6[prim1.type | prim2.type]; if(collider != null && Boolean(collider.getContact(prim1,prim2,contact))) { if(prim1.postCollisionFilter != null && !prim1.postCollisionFilter.acceptPrimitivesCollision(prim1,prim2)) @@ -644,22 +644,22 @@ package alternativa.tanks.game.physics.collision.uniformgrid 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.name_aq.minX; + var y1:Number = origin.y - this.name_aq.minY; + var z1:Number = origin.z - this.name_aq.minZ; var x2:Number = x1 + direction.x * maxTime; var y2:Number = y1 + direction.y * maxTime; var z2:Number = z1 + direction.z * maxTime; var axis:int = -1; var entryTime:Number = 0; var p:Vector3 = new Vector3(); - var pointInBounds:Boolean = Boolean(this.§_-aq§.containsPoint(origin,EPSILON)); + var pointInBounds:Boolean = Boolean(this.name_aq.containsPoint(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.name_aq.minX + collisionBox.hs.x; + collisionBox.transform.h = this.name_aq.minY + collisionBox.hs.y; + collisionBox.transform.l = this.name_aq.minZ + collisionBox.hs.z; collisionBox.calculateAABB(); t = Number(collisionBox.raycast(origin,direction,EPSILON,normal)); if(t < 0 || t >= maxTime) @@ -680,9 +680,9 @@ package alternativa.tanks.game.physics.collision.uniformgrid 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.name_aq.minX) / this.cellSize,0,this.numCellsX - 1); + j = this.clamp((p.y - this.name_aq.minY) / this.cellSize,0,this.numCellsY - 1); + k = this.clamp((p.z - this.name_aq.minZ) / this.cellSize,0,this.numCellsZ - 1); } else { @@ -789,7 +789,7 @@ package alternativa.tanks.game.physics.collision.uniformgrid 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.name_00; cellIndex++) { bodyCellEntry = this.bodyCellEntries[cellIndex]; for(this.bodyCellEntries[cellIndex] = null; bodyCellEntry != null; ) @@ -799,8 +799,8 @@ package alternativa.tanks.game.physics.collision.uniformgrid bodyCellEntry = nextBodyCellEntry; } } - var occupiedCell:OccupiedCellIndex = this.§_-Qp§; - for(this.§_-Qp§ = null; occupiedCell != null; ) + var occupiedCell:OccupiedCellIndex = this.name_Qp; + for(this.name_Qp = null; occupiedCell != null; ) { nextOccupiedCell = occupiedCell.next; occupiedCell.destory(); @@ -826,30 +826,30 @@ package alternativa.tanks.game.physics.collision.uniformgrid var index:int = 0; var newEntry:BodyCellEntry = null; this.clearDynamicBodyCells(); - for(var ti:int = 0; ti < this.§_-VV§; ti++) + for(var ti:int = 0; ti < this.name_VV; ti++) { - bodyCollisionData = this.§_-3Q§[ti]; + bodyCollisionData = this.name_3Q[ti]; boundBox = bodyCollisionData.body.aabb; - imin = (boundBox.minX - this.§_-aq§.minX) / this.cellSize; + imin = (boundBox.minX - this.name_aq.minX) / this.cellSize; if(!(imin < 0 || imin >= this.numCellsX)) { - jmin = (boundBox.minY - this.§_-aq§.minY) / this.cellSize; + jmin = (boundBox.minY - this.name_aq.minY) / this.cellSize; if(!(jmin < 0 || jmin >= this.numCellsY)) { - kmin = (boundBox.minZ - this.§_-aq§.minZ) / this.cellSize; + kmin = (boundBox.minZ - this.name_aq.minZ) / this.cellSize; if(!(kmin < 0 || kmin >= this.numCellsZ)) { - imax = (boundBox.maxX - this.§_-aq§.minX) / this.cellSize; + imax = (boundBox.maxX - this.name_aq.minX) / this.cellSize; if(imax >= this.numCellsX) { imax = this.numCellsX - 1; } - jmax = (boundBox.maxY - this.§_-aq§.minY) / this.cellSize; + jmax = (boundBox.maxY - this.name_aq.minY) / this.cellSize; if(jmax >= this.numCellsY) { jmax = this.numCellsY - 1; } - kmax = (boundBox.maxZ - this.§_-aq§.minZ) / this.cellSize; + kmax = (boundBox.maxZ - this.name_aq.minZ) / this.cellSize; if(kmax >= this.numCellsZ) { kmax = this.numCellsZ - 1; @@ -861,8 +861,8 @@ package alternativa.tanks.game.physics.collision.uniformgrid if(this.bodyCellEntries[cellIndex] == null) { occupiedCellIndex = OccupiedCellIndex.create(cellIndex); - occupiedCellIndex.next = this.§_-Qp§; - this.§_-Qp§ = occupiedCellIndex; + occupiedCellIndex.next = this.name_Qp; + this.name_Qp = occupiedCellIndex; } for(i = imin; i <= imax; ) { @@ -883,15 +883,15 @@ package alternativa.tanks.game.physics.collision.uniformgrid } } } - this.§_-WJ§ = false; + this.name_WJ = false; } private function findBodyEntry(body:Body) : int { var bodyCollisionGridData:BodyCollisionGridData = null; - for(var i:int = 0; i < this.§_-VV§; ) + for(var i:int = 0; i < this.name_VV; ) { - bodyCollisionGridData = this.§_-3Q§[i]; + bodyCollisionGridData = this.name_3Q[i]; if(bodyCollisionGridData.body == body) { return i; @@ -904,13 +904,13 @@ package alternativa.tanks.game.physics.collision.uniformgrid private function initPairBitArray() : void { var maxObjectPairs:int = MAX_OBJECTS * (MAX_OBJECTS - 1) / 2; - this.§_-81§ = (maxObjectPairs + 31) / 32; - this.§_-48§ = new Vector.(this.§_-81§); + this.name_81 = (maxObjectPairs + 31) / 32; + this.name_48 = new Vector.(this.name_81); } private function initColliders() : void { - this.§_-P6§ = new Object(); + this.name_P6 = new Object(); this.addCollider(CollisionPrimitive.BOX,CollisionPrimitive.BOX,new BoxBoxCollider()); this.addCollider(CollisionPrimitive.BOX,CollisionPrimitive.RECT,new BoxRectCollider()); this.addCollider(CollisionPrimitive.BOX,CollisionPrimitive.TRIANGLE,new BoxTriangleCollider()); @@ -922,6 +922,8 @@ import alternativa.math.Vector3; import alternativa.physics.collision.CollisionPrimitive; import alternativa.physics.collision.IRaycastFilter; import alternativa.physics.collision.types.RayHit; +import alternativa.tanks.game.physics.collision.uniformgrid.IRaycastCellVisitor; +import alternativa.tanks.game.physics.collision.uniformgrid.BodyCollisionGridData; class BodyCellEntry { diff --git a/src/alternativa/tanks/game/subsystems/battlemessages/BattleMessagesSubsystem.as b/src/alternativa/tanks/game/subsystems/battlemessages/BattleMessagesSubsystem.as index 60c7b07..7937665 100644 --- a/src/alternativa/tanks/game/subsystems/battlemessages/BattleMessagesSubsystem.as +++ b/src/alternativa/tanks/game/subsystems/battlemessages/BattleMessagesSubsystem.as @@ -15,9 +15,9 @@ package alternativa.tanks.game.subsystems.battlemessages private var maxMessagesNumber:int; - private var §_-pQ§:Sprite; + private var name_pQ:Sprite; - private var §_-cd§:Vector.; + private var name_cd:Vector.; private var timer:Timer; @@ -25,31 +25,31 @@ package alternativa.tanks.game.subsystems.battlemessages { 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.name_pQ = new Sprite(); + this.name_pQ.x = messagesX; + this.name_pQ.y = messagesY; + container.addChild(this.name_pQ); + this.name_cd = new Vector.(); this.timer = new Timer(1000); this.timer.addEventListener(TimerEvent.TIMER,this.onTimer); } public function set messagesX(value:int) : void { - this.§_-pQ§.x = value; + this.name_pQ.x = value; } public function set messagesY(value:int) : void { - this.§_-pQ§.y = value; + this.name_pQ.y = value; } public function addMessage(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.name_cd.push(message); + this.name_pQ.addChild(message); + if(this.name_cd.length > this.maxMessagesNumber) { this.removeMessage(0); } @@ -59,13 +59,13 @@ package alternativa.tanks.game.subsystems.battlemessages override public function stop() : void { - this.§_-pQ§.parent.removeChild(this.§_-pQ§); + this.name_pQ.parent.removeChild(this.name_pQ); this.timer.stop(); } private function updateTimerState() : void { - if(this.§_-cd§.length > 0) + if(this.name_cd.length > 0) { if(!this.timer.running) { @@ -81,9 +81,9 @@ package alternativa.tanks.game.subsystems.battlemessages private function updateMessagesPositions() : void { var message:Message = null; - for(var i:int = 0; i < this.§_-cd§.length; i++) + for(var i:int = 0; i < this.name_cd.length; i++) { - message = this.§_-cd§[i]; + message = this.name_cd[i]; message.y = i * MESSAGE_SPACING_Y; } } @@ -97,9 +97,9 @@ package alternativa.tanks.game.subsystems.battlemessages private function removeExpiredMessages(time:int) : void { - if(this.§_-cd§.length > 0) + if(this.name_cd.length > 0) { - if(Message(this.§_-cd§[0]).expirationTime <= time) + if(Message(this.name_cd[0]).expirationTime <= time) { this.removeMessage(0); } @@ -108,8 +108,8 @@ package alternativa.tanks.game.subsystems.battlemessages private function removeMessage(i:int) : void { - this.§_-pQ§.removeChild(this.§_-cd§[i]); - this.§_-cd§.splice(i,1); + this.name_pQ.removeChild(this.name_cd[i]); + this.name_cd.splice(i,1); } } } diff --git a/src/alternativa/tanks/game/subsystems/eventsystem/EventSystem.as b/src/alternativa/tanks/game/subsystems/eventsystem/EventSystem.as index f5da55a..e6826d4 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 name_iZ:Object; public function EventSystem(priority:int) { super(priority); this.eventQueue1 = new List(); this.eventQueue2 = new List(); - this.§_-iZ§ = new Object(); + this.name_iZ = new Object(); } public function addEventListener(eventType:String, listener:IGameEventListener) : void { - var listeners:List = this.§_-iZ§[eventType]; + var listeners:List = this.name_iZ[eventType]; if(listeners == null) { listeners = new List(); - this.§_-iZ§[eventType] = listeners; + this.name_iZ[eventType] = listeners; } listeners.add(listener); } public function removeEventListener(eventType:String, listener:IGameEventListener) : void { - var listeners:List = this.§_-iZ§[eventType]; + var listeners:List = this.name_iZ[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.name_iZ[event.eventType]; if(listeners != null) { iterator = listeners.listIterator(); diff --git a/src/alternativa/tanks/game/subsystems/inputsystem/InputSystem.as b/src/alternativa/tanks/game/subsystems/inputsystem/InputSystem.as index c4c7e8c..bd2b75f 100644 --- a/src/alternativa/tanks/game/subsystems/inputsystem/InputSystem.as +++ b/src/alternativa/tanks/game/subsystems/inputsystem/InputSystem.as @@ -12,50 +12,50 @@ package alternativa.tanks.game.subsystems.inputsystem private var eventSource:InteractiveObject; - private var §_-Pb§:BitVector; + private var name_Pb:BitVector; - private var §_-FK§:Boolean; + private var name_FK:Boolean; - private var §_-PG§:Boolean; + private var name_PG:Boolean; - private var §_-Hv§:Boolean; + private var name_Hv:Boolean; - private var §_-8e§:int; + private var name_8e:int; - private var §_-dL§:int; + private var name_dL:int; private var mouseX:int; private var mouseY:int; - private var §_-Sm§:int; + private var name_Sm:int; - private var §_-4F§:int; + private var name_4F:int; - private var §_-HC§:int; + private var name_HC:int; - private var §_-Jh§:CleanupTask; + private var name_Jh:CleanupTask; - private var §_-CU§:Vector.>; + private var name_CU:Vector.>; - private var §_-ll§:Vector.>; + private var name_ll:Vector.>; - private var § use§:Vector.; + private var name_use1:Vector.; - private var §_-A4§:Vector.; + private var name_A4:Vector.; - private var §use §:KeybardEventQueue; + private var name_use2:KeybardEventQueue; public function InputSystem(priority:int, eventSource:InteractiveObject) { super(priority); this.eventSource = eventSource; - this.§_-Pb§ = new BitVector(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.name_Pb = new BitVector(NUM_KEYS); + this.name_CU = new Vector.>(NUM_KEYS); + this.name_ll = new Vector.>(NUM_KEYS); + this.name_use1 = new Vector.(); + this.name_A4 = new Vector.(); + this.name_use2 = new KeybardEventQueue(); } public function addKeyboardListener(eventType:KeyboardEventType, listener:Function, keyCode:uint = 0) : void @@ -65,18 +65,18 @@ package alternativa.tanks.game.subsystems.inputsystem case KeyboardEventType.KEY_DOWN: if(keyCode == 0) { - this.addKeyListener(this.§ use§,listener); + this.addKeyListener(this.name_use1,listener); break; } - this.addDistinctKeyListener(this.§_-CU§,keyCode,listener); + this.addDistinctKeyListener(this.name_CU,keyCode,listener); break; case KeyboardEventType.KEY_UP: if(keyCode == 0) { - this.addKeyListener(this.§_-A4§,listener); + this.addKeyListener(this.name_A4,listener); break; } - this.addDistinctKeyListener(this.§_-ll§,keyCode,listener); + this.addDistinctKeyListener(this.name_ll,keyCode,listener); break; } } @@ -88,30 +88,30 @@ package alternativa.tanks.game.subsystems.inputsystem case KeyboardEventType.KEY_DOWN: if(keyCode == 0) { - this.removeKeyListener(this.§ use§,listener); + this.removeKeyListener(this.name_use1,listener); break; } - this.removeDistinctKeyListener(this.§_-CU§,keyCode,listener); + this.removeDistinctKeyListener(this.name_CU,keyCode,listener); break; case KeyboardEventType.KEY_UP: if(keyCode == 0) { - this.removeKeyListener(this.§_-A4§,listener); + this.removeKeyListener(this.name_A4,listener); break; } - this.removeDistinctKeyListener(this.§_-ll§,keyCode,listener); + this.removeDistinctKeyListener(this.name_ll,keyCode,listener); break; } } public function getKeyState(keyCode:uint) : int { - return this.§_-Pb§.getBit(keyCode); + return this.name_Pb.getBit(keyCode); } public function keyPressed(keyCode:uint) : Boolean { - return this.§_-Pb§.getBit(keyCode) == 1; + return this.name_Pb.getBit(keyCode) == 1; } private function addDistinctKeyListener(keyTypeListeners:Vector.>, keyCode:uint, listener:Function) : void @@ -168,33 +168,33 @@ package alternativa.tanks.game.subsystems.inputsystem public function mouseButtonPressed() : Boolean { - return this.§_-PG§; + return this.name_PG; } public function wasMouseButtonPressed() : Boolean { - return this.§_-Hv§; + return this.name_Hv; } public function getMouseDeltaX() : int { - return this.§_-Sm§; + return this.name_Sm; } public function getMouseDeltaY() : int { - return this.§_-4F§; + return this.name_4F; } public function getMouseWheelDelta() : int { - return this.§_-HC§; + return this.name_HC; } override public function start() : void { - this.§_-Jh§ = new CleanupTask(int.MAX_VALUE,this); - §_-Uw§.addTask(this.§_-Jh§); + this.name_Jh = new CleanupTask(int.MAX_VALUE,this); + name_Uw.addTask(this.name_Jh); this.eventSource.addEventListener(KeyboardEvent.KEY_DOWN,this.onKeyDown); this.eventSource.addEventListener(KeyboardEvent.KEY_UP,this.onKeyUp); this.eventSource.addEventListener(MouseEvent.MOUSE_MOVE,this.onMouseMove); @@ -205,7 +205,7 @@ package alternativa.tanks.game.subsystems.inputsystem override public function stop() : void { - §_-Uw§.killTask(this.§_-Jh§); + name_Uw.killTask(this.name_Jh); this.eventSource.removeEventListener(KeyboardEvent.KEY_DOWN,this.onKeyDown); this.eventSource.removeEventListener(KeyboardEvent.KEY_UP,this.onKeyUp); this.eventSource.removeEventListener(MouseEvent.MOUSE_MOVE,this.onMouseMove); @@ -216,8 +216,8 @@ package alternativa.tanks.game.subsystems.inputsystem override public function run() : void { - this.§_-Sm§ = this.mouseX - this.§_-8e§; - this.§_-4F§ = this.mouseY - this.§_-dL§; + this.name_Sm = this.mouseX - this.name_8e; + this.name_4F = this.mouseY - this.name_dL; this.dispatchKeyboardEvents(); } @@ -230,7 +230,7 @@ package alternativa.tanks.game.subsystems.inputsystem var eventType:KeyboardEventType = null; while(true) { - event = this.§use §.poll(); + event = this.name_use2.poll(); if(event == null) { break; @@ -240,12 +240,12 @@ package alternativa.tanks.game.subsystems.inputsystem switch(eventType) { case KeyboardEventType.KEY_DOWN: - distinctListeners = this.§_-CU§[keyCode]; - listeners = this.§ use§; + distinctListeners = this.name_CU[keyCode]; + listeners = this.name_use1; break; case KeyboardEventType.KEY_UP: - distinctListeners = this.§_-ll§[keyCode]; - listeners = this.§_-A4§; + distinctListeners = this.name_ll[keyCode]; + listeners = this.name_A4; } if(distinctListeners != null) { @@ -272,11 +272,11 @@ package alternativa.tanks.game.subsystems.inputsystem public function cleanup() : void { - this.§_-FK§ = this.§_-PG§; - this.§_-Hv§ = false; - this.§_-8e§ = this.mouseX; - this.§_-dL§ = this.mouseY; - this.§_-HC§ = 0; + this.name_FK = this.name_PG; + this.name_Hv = false; + this.name_8e = this.mouseX; + this.name_dL = this.mouseY; + this.name_HC = 0; } private function onKeyDown(event:KeyboardEvent) : void @@ -284,10 +284,10 @@ package alternativa.tanks.game.subsystems.inputsystem var keyCode:uint = uint(event.keyCode); if(keyCode < NUM_KEYS) { - if(this.§_-Pb§.getBit(keyCode) == 0) + if(this.name_Pb.getBit(keyCode) == 0) { - this.§_-Pb§.setBit(keyCode,true); - this.§use §.add(keyCode,KeyboardEventType.KEY_DOWN); + this.name_Pb.setBit(keyCode,true); + this.name_use2.add(keyCode,KeyboardEventType.KEY_DOWN); } } } @@ -297,10 +297,10 @@ package alternativa.tanks.game.subsystems.inputsystem var keyCode:uint = uint(event.keyCode); if(keyCode < NUM_KEYS) { - if(this.§_-Pb§.getBit(keyCode) == 1) + if(this.name_Pb.getBit(keyCode) == 1) { - this.§_-Pb§.setBit(keyCode,false); - this.§use §.add(keyCode,KeyboardEventType.KEY_UP); + this.name_Pb.setBit(keyCode,false); + this.name_use2.add(keyCode,KeyboardEventType.KEY_UP); } } } @@ -313,23 +313,25 @@ package alternativa.tanks.game.subsystems.inputsystem private function onMouseWheel(event:MouseEvent) : void { - this.§_-HC§ = event.delta; + this.name_HC = event.delta; } private function onMouseDown(event:MouseEvent) : void { - this.§_-PG§ = true; - this.§_-Hv§ = true; + this.name_PG = true; + this.name_Hv = true; } private function onMouseUp(event:MouseEvent) : void { - this.§_-PG§ = false; + this.name_PG = false; } } } import alternativa.tanks.game.GameTask; +import alternativa.tanks.game.subsystems.inputsystem.InputSystem; +import alternativa.tanks.game.subsystems.inputsystem.KeyboardEventType; class CleanupTask extends GameTask { diff --git a/src/alternativa/tanks/game/subsystems/logicsystem/LogicSystem.as b/src/alternativa/tanks/game/subsystems/logicsystem/LogicSystem.as index 4e9eabc..400c199 100644 --- a/src/alternativa/tanks/game/subsystems/logicsystem/LogicSystem.as +++ b/src/alternativa/tanks/game/subsystems/logicsystem/LogicSystem.as @@ -5,9 +5,9 @@ package alternativa.tanks.game.subsystems.logicsystem public class LogicSystem extends GameTask implements ILogic { - private var §_-jB§:Vector.; + private var name_jB:Vector.; - private var §_-0Y§:int; + private var name_0Y:int; private var running:Boolean; @@ -17,7 +17,7 @@ package alternativa.tanks.game.subsystems.logicsystem { super(priority); this.gameKernel = gameKernel; - this.§_-jB§ = new Vector.(); + this.name_jB = new Vector.(); } public function addLogicUnit(logicUnit:ILogicUnit) : void @@ -30,12 +30,12 @@ package alternativa.tanks.game.subsystems.logicsystem } else { - if(this.§_-jB§.indexOf(logicUnit) >= 0) + if(this.name_jB.indexOf(logicUnit) >= 0) { throw new Error("Logic unit already exists"); } - var _loc3_:* = this.§_-0Y§++; - this.§_-jB§[_loc3_] = logicUnit; + var _loc3_:* = this.name_0Y++; + this.name_jB[_loc3_] = logicUnit; } } @@ -50,22 +50,22 @@ package alternativa.tanks.game.subsystems.logicsystem } else { - _loc3_ = int(this.§_-jB§.indexOf(logicUnit)); + _loc3_ = int(this.name_jB.indexOf(logicUnit)); if(_loc3_ < 0) { throw new Error("Logic unit not found"); } - this.§_-jB§[_loc3_] = this.§_-jB§[--this.§_-0Y§]; - this.§_-jB§[this.§_-0Y§] = null; + this.name_jB[_loc3_] = this.name_jB[--this.name_0Y]; + this.name_jB[this.name_0Y] = null; } } override public function run() : void { this.running = true; - for(var i:int = 0; i < this.§_-0Y§; i++) + for(var i:int = 0; i < this.name_0Y; i++) { - this.§_-jB§[i].runLogic(); + this.name_jB[i].runLogic(); } this.running = false; } @@ -82,6 +82,8 @@ package alternativa.tanks.game.subsystems.logicsystem import alternativa.tanks.game.subsystems.deferredcommandssystem.DeferredCommand; import alternativa.tanks.game.utils.objectpool.ObjectPool; import alternativa.tanks.game.utils.objectpool.PooledObject; +import alternativa.tanks.game.subsystems.logicsystem.ILogic; +import alternativa.tanks.game.subsystems.logicsystem.ILogicUnit; class DeferredAction extends DeferredCommand { diff --git a/src/alternativa/tanks/game/subsystems/physicssystem/PhysicsSystem.as b/src/alternativa/tanks/game/subsystems/physicssystem/PhysicsSystem.as index bc3eff2..0929eb1 100644 --- a/src/alternativa/tanks/game/subsystems/physicssystem/PhysicsSystem.as +++ b/src/alternativa/tanks/game/subsystems/physicssystem/PhysicsSystem.as @@ -23,25 +23,25 @@ package alternativa.tanks.game.subsystems.physicssystem private var physicsScene:PhysicsScene; - private var §_-hl§:Vector.; + private var name_hl:Vector.; - private var §_-g7§:int; + private var name_g7:int; - private var §_-b5§:Vector.; + private var name_b5:Vector.; - private var §_-f5§:int; + private var name_f5:int; - private var §_-ST§:Vector.; + private var name_ST:Vector.; - private var §_-7y§:int; + private var name_7y:int; - private var §_-jp§:UniformGridCollisionDetector; + private var name_jp:UniformGridCollisionDetector; - private var §_-FE§:int; + private var name_FE:int; private var running:Boolean; - private var §_-pR§:DeferredCommand; + private var name_pR:DeferredCommand; private var objectPoolManager:ObjectPoolManager; @@ -49,18 +49,18 @@ package alternativa.tanks.game.subsystems.physicssystem { super(priority); this.objectPoolManager = objectPoolManager; - this.§_-hl§ = new Vector.(); - this.§_-b5§ = new Vector.(); - this.§_-ST§ = new Vector.(); + this.name_hl = new Vector.(); + this.name_b5 = new Vector.(); + this.name_ST = new Vector.(); this.physicsScene = new PhysicsScene(); - this.physicsScene.§_-06§ = true; - this.physicsScene.§_-YB§ = 5; + this.physicsScene.name_06 = true; + this.physicsScene.name_YB = 5; this.physicsScene.dynamic = 100; this.physicsScene.gravity = new Vector3(0,0,-1000); if(USE_GRID_COLLISION_DETECTOR) { - this.§_-jp§ = new UniformGridCollisionDetector(); - this.physicsScene.collisionDetector = this.§_-jp§; + this.name_jp = new UniformGridCollisionDetector(); + this.physicsScene.collisionDetector = this.name_jp; } else { @@ -70,18 +70,18 @@ package alternativa.tanks.game.subsystems.physicssystem override protected function onPause() : void { - this.§_-FE§ = getTimer(); + this.name_FE = getTimer(); } override protected function onResume() : void { - this.§_-FE§ = getTimer() - this.§_-FE§; - this.physicsScene.time += this.§_-FE§; + this.name_FE = getTimer() - this.name_FE; + this.physicsScene.time += this.name_FE; } public function getGridCollisionDetector() : UniformGridCollisionDetector { - return this.§_-jp§; + return this.name_jp; } public function getPhysicsStep() : int @@ -103,7 +103,7 @@ package alternativa.tanks.game.subsystems.physicssystem if(USE_GRID_COLLISION_DETECTOR) { gridCellSize = 800; - this.§_-jp§.createGrid(gridCellSize,collisionPrimitives); + this.name_jp.createGrid(gridCellSize,collisionPrimitives); } else { @@ -111,7 +111,7 @@ package alternativa.tanks.game.subsystems.physicssystem _loc4_ = new BoundBox(); _loc5_ = 20000; _loc4_.setSize(-_loc5_,-_loc5_,-_loc5_,_loc5_,_loc5_,_loc5_); - _loc3_.prepareForRaycasts(collisionPrimitives,_loc4_); + _loc3_.buildKdTree(collisionPrimitives,_loc4_); } } @@ -125,12 +125,12 @@ package alternativa.tanks.game.subsystems.physicssystem } else { - if(this.§_-hl§.indexOf(controller) >= 0) + if(this.name_hl.indexOf(controller) >= 0) { throw new Error("Controller " + controller + " already exists"); } - var _loc3_:* = this.§_-g7§++; - this.§_-hl§[_loc3_] = controller; + var _loc3_:* = this.name_g7++; + this.name_hl[_loc3_] = controller; } } @@ -144,23 +144,23 @@ package alternativa.tanks.game.subsystems.physicssystem } else { - if(this.§_-b5§.indexOf(controller) >= 0) + if(this.name_b5.indexOf(controller) >= 0) { throw new Error("Controller " + controller + " already exists"); } - var _loc3_:* = this.§_-f5§++; - this.§_-b5§[_loc3_] = controller; + var _loc3_:* = this.name_f5++; + this.name_b5[_loc3_] = controller; } } public function addInterpolationController(controller:IPhysicsController) : void { - if(this.§_-ST§.indexOf(controller) >= 0) + if(this.name_ST.indexOf(controller) >= 0) { throw new Error("Controller " + controller + " already exists"); } - var _loc2_:* = this.§_-7y§++; - this.§_-ST§[_loc2_] = controller; + var _loc2_:* = this.name_7y++; + this.name_ST[_loc2_] = controller; } public function removeControllerBefore(controller:IPhysicsController) : void @@ -174,13 +174,13 @@ package alternativa.tanks.game.subsystems.physicssystem } else { - _loc3_ = int(this.§_-hl§.indexOf(controller)); + _loc3_ = int(this.name_hl.indexOf(controller)); if(_loc3_ < 0) { throw new Error("Controller " + controller + " not found"); } - this.§_-hl§[_loc3_] = this.§_-hl§[--this.§_-g7§]; - this.§_-hl§[this.§_-g7§] = null; + this.name_hl[_loc3_] = this.name_hl[--this.name_g7]; + this.name_hl[this.name_g7] = null; } } @@ -195,25 +195,25 @@ package alternativa.tanks.game.subsystems.physicssystem } else { - _loc3_ = int(this.§_-b5§.indexOf(controller)); + _loc3_ = int(this.name_b5.indexOf(controller)); if(_loc3_ < 0) { throw new Error("Controller " + controller + " not found"); } - this.§_-b5§[_loc3_] = this.§_-b5§[--this.§_-f5§]; - this.§_-b5§[this.§_-f5§] = null; + this.name_b5[_loc3_] = this.name_b5[--this.name_f5]; + this.name_b5[this.name_f5] = null; } } public function removeInterpolationController(controller:IPhysicsController) : void { - var index:int = int(this.§_-ST§.indexOf(controller)); + var index:int = int(this.name_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; + this.name_ST[index] = this.name_ST[--this.name_7y]; + this.name_ST[this.name_7y] = null; } override public function start() : void @@ -233,22 +233,22 @@ package alternativa.tanks.game.subsystems.physicssystem { this.running = true; ITanksCollisionDetector(this.physicsScene.collisionDetector).prepareForRaycasts(); - for(i = 0; i < this.§_-g7§; i++) + for(i = 0; i < this.name_g7; i++) { - controller = this.§_-hl§[i]; + controller = this.name_hl[i]; controller.updateBeforeSimulation(this.physicsStep); } this.physicsScene.update(this.physicsStep); ITanksCollisionDetector(this.physicsScene.collisionDetector).prepareForRaycasts(); - for(i = 0; i < this.§_-f5§; i++) + for(i = 0; i < this.name_f5; i++) { - controller = this.§_-b5§[i]; + controller = this.name_b5[i]; controller.updateAfterSimulation(this.physicsStep); } - for(this.running = false; this.§_-pR§ != null; ) + for(this.running = false; this.name_pR != null; ) { - action = this.§_-pR§; - this.§_-pR§ = this.§_-pR§.next; + action = this.name_pR; + this.name_pR = this.name_pR.next; action.next = null; action.execute(); action.storeInPool(); @@ -256,9 +256,9 @@ package alternativa.tanks.game.subsystems.physicssystem } } this.interpolationCoeff = 1 - (this.physicsScene.time - currentTime) / this.physicsStep; - for(i = 0; i < this.§_-7y§; i++) + for(i = 0; i < this.name_7y; i++) { - controller = this.§_-ST§[i]; + controller = this.name_ST[i]; controller.interpolate(this.interpolationCoeff); } } @@ -267,8 +267,8 @@ package alternativa.tanks.game.subsystems.physicssystem { deferredAction.system = this; deferredAction.controller = controller; - deferredAction.next = this.§_-pR§; - this.§_-pR§ = deferredAction; + deferredAction.next = this.name_pR; + this.name_pR = deferredAction; } } } @@ -276,6 +276,8 @@ package alternativa.tanks.game.subsystems.physicssystem import alternativa.tanks.game.subsystems.deferredcommandssystem.DeferredCommand; import alternativa.tanks.game.utils.objectpool.ObjectPool; import alternativa.tanks.game.utils.objectpool.PooledObject; +import alternativa.tanks.game.subsystems.physicssystem.PhysicsSystem; +import alternativa.tanks.game.subsystems.physicssystem.IPhysicsController; class DeferredAction extends DeferredCommand { diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/DirectionalLightList.as b/src/alternativa/tanks/game/subsystems/rendersystem/DirectionalLightList.as index 563a431..b08ccaa 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 name_9k:Vector.; public function DirectionalLightList(container:Object3D) { super(); this.container = container; - this.§_-9k§ = new Vector.(); + this.name_9k = new Vector.(); } public function add(light:DirectionalLight) : void { - if(this.§_-9k§.indexOf(light) < 0) + if(this.name_9k.indexOf(light) < 0) { - this.§_-9k§.push(light); + this.name_9k.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.name_9k.indexOf(light)); if(index >= 0) { - this.§_-9k§[index] = this.§_-9k§[this.§_-9k§.length - 1]; - this.§_-9k§.length -= 1; + this.name_9k[index] = this.name_9k[this.name_9k.length - 1]; + this.name_9k.length -= 1; } } public function get size() : int { - return this.§_-9k§.length; + return this.name_9k.length; } public function get lights() : Vector. { - return Vector.(this.§_-9k§); + return Vector.(this.name_9k); } public function getLightAt(i:int) : DirectionalLight { - return this.§_-9k§[i]; + return this.name_9k[i]; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/Lights.as b/src/alternativa/tanks/game/subsystems/rendersystem/Lights.as index 1e20679..1093840 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 name_e8:AmbientLight; - private var §_-qW§:DirectionalLightList; + private var name_qW:DirectionalLightList; - private var §_-hD§:OmniLightList; + private var name_hD:OmniLightList; - private var §_-pd§:SpotLightList; + private var name_pd: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.name_qW = new DirectionalLightList(container); + this.name_hD = new OmniLightList(container); + this.name_pd = new SpotLightList(container); } public function set ambientLight(light:AmbientLight) : void { - if(this.§_-e8§ != light) + if(this.name_e8 != light) { - if(this.§_-e8§ != null) + if(this.name_e8 != null) { - this.container.removeChild(this.§_-e8§); + this.container.removeChild(this.name_e8); } - this.§_-e8§ = light; - if(this.§_-e8§ != null) + this.name_e8 = light; + if(this.name_e8 != null) { - this.container.addChild(this.§_-e8§); + this.container.addChild(this.name_e8); } } } public function get ambientLight() : AmbientLight { - return this.§_-e8§; + return this.name_e8; } public function get directionalLigths() : DirectionalLightList { - return this.§_-qW§; + return this.name_qW; } public function get omniLigths() : OmniLightList { - return this.§_-hD§; + return this.name_hD; } public function get spotLights() : SpotLightList { - return this.§_-pd§; + return this.name_pd; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/OmniLightList.as b/src/alternativa/tanks/game/subsystems/rendersystem/OmniLightList.as index 1baa8b5..576b9a1 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 name_9k:Vector.; public function OmniLightList(container:Object3D) { super(); this.container = container; - this.§_-9k§ = new Vector.(); + this.name_9k = new Vector.(); } public function add(light:OmniLight) : void { - if(this.§_-9k§.indexOf(light) < 0) + if(this.name_9k.indexOf(light) < 0) { - this.§_-9k§.push(light); + this.name_9k.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.name_9k.indexOf(light)); if(index >= 0) { - this.§_-9k§[index] = this.§_-9k§[this.§_-9k§.length - 1]; - this.§_-9k§.length -= 1; + this.name_9k[index] = this.name_9k[this.name_9k.length - 1]; + this.name_9k.length -= 1; } } public function get size() : int { - return this.§_-9k§.length; + return this.name_9k.length; } public function get lights() : Vector. { - return Vector.(this.§_-9k§); + return Vector.(this.name_9k); } public function getLightAt(i:int) : OmniLight { - return this.§_-9k§[i]; + return this.name_9k[i]; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as b/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as index ec531ac..a0bba98 100644 --- a/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as +++ b/src/alternativa/tanks/game/subsystems/rendersystem/RenderSystem.as @@ -66,39 +66,39 @@ package alternativa.tanks.game.subsystems.rendersystem private var effectsContainer:Object3D; - private var §_-jy§:Object = {}; + private var name_jy:Object = {}; private var view:View; private var camera:GameCamera; - private var §_-lk§:ICameraController; + private var name_lk:ICameraController; private var axisIndicator:AxisIndicator; private var renderers:RendererList; - private var §_-WV§:RendererList; + private var name_WV:RendererList; private var effects:Vector.; private var numEffects:int; - private var §_-EX§:Boolean = true; + private var name_EX:Boolean = true; - private var §_-qH§:Object = {}; + private var name_qH:Object = {}; - private var §_-9k§:Lights; + private var name_9k:Lights; - private var §for§:Boolean; + //private var for:Boolean; //XXX: this is unused - private var §_-7w§:Boolean; + private var name_7w:Boolean; private var objectPoolManager:ObjectPoolManager = new ObjectPoolManager(); - private var §_-1h§:Vector.; + private var name_1h:Vector.; - private var §_-i6§:BitFlags = new BitFlags(); + private var name_i6:BitFlags = new BitFlags(); private var stage:Stage; @@ -106,17 +106,17 @@ package alternativa.tanks.game.subsystems.rendersystem private var resourceManager:ResourceManager; - private var §_-aD§:ShadowsSystem; + private var name_aD:ShadowsSystem; private var staticShadowRenderer:StaticShadowRenderer; - private var §_-pR§:Vector.; + private var name_pR:Vector.; - private var §_-MI§:Vector.; + private var name_MI:Vector.; - private var §_-qS§:Boolean; + private var name_qS:Boolean; - private var §_-Qk§:BitmapTextureResource; + private var name_Qk:BitmapTextureResource; private var particleSystem:ParticleSystem; @@ -125,7 +125,7 @@ package alternativa.tanks.game.subsystems.rendersystem super(priority); this.stage = stage; this.renderers = new RendererList(); - this.§_-WV§ = new RendererList(); + this.name_WV = 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.name_9k = new Lights(this.lightsContainer); this.view = new View(100,100,false,6710886,1,4); this.view.hideLogo(); this.camera = new GameCamera(10,50000); @@ -150,9 +150,9 @@ package alternativa.tanks.game.subsystems.rendersystem this.rootContainer.addChild(this.particleSystem); this.axisIndicator = new AxisIndicator(100); this.resourceManager = new ResourceManager(); - this.§_-aD§ = new ShadowsSystem(); + this.name_aD = new ShadowsSystem(); this.staticShadowRenderer = new StaticShadowRenderer(null,1024,4); - this.§_-pR§ = new Vector.(); + this.name_pR = 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.name_9k; } public function setFogMode(mode:int) : void @@ -252,7 +252,7 @@ package alternativa.tanks.game.subsystems.rendersystem GiShadowMaterial.fogColorR = r; GiShadowMaterial.fogColorG = g; GiShadowMaterial.fogColorB = b; - this.particleSystem.§_-IN§ = color; + this.particleSystem.name_IN = color; } public function setFogHorizonSize(value:Number) : void @@ -275,7 +275,7 @@ package alternativa.tanks.game.subsystems.rendersystem } else { - this.§_-pR§.push(fogInitializator); + this.name_pR.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.name_Qk != null) { - this.releaseResource(this.§_-Qk§); + this.releaseResource(this.name_Qk); } - 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.name_Qk = new BitmapTextureResource(bitmapData); + this.useResource(this.name_Qk); + MapMaterial.setFogTexture(this.name_Qk); + TankMaterial.setFogTexture(this.name_Qk); + TankMaterial2.setFogTexture(this.name_Qk); + GiShadowMaterial.setFogTexture(this.name_Qk); + TracksMaterial2.setFogTexture(this.name_Qk); + TreesMaterial.setFogTexture(this.name_Qk); + SkyMaterial.setFogTexture(this.name_Qk); } public function isShadowSystemReady() : Boolean { - return this.§_-qS§; + return this.name_qS; } public function setShadowSystemReady() : void { var shadowRendererConstructor:IShadowRendererConstructor = null; - this.§_-qS§ = true; - if(this.§_-MI§ != null) + this.name_qS = true; + if(this.name_MI != null) { - for each(shadowRendererConstructor in this.§_-MI§) + for each(shadowRendererConstructor in this.name_MI) { shadowRendererConstructor.createShadowRenderer(); } - this.§_-MI§ = null; + this.name_MI = null; } } @@ -325,37 +325,37 @@ package alternativa.tanks.game.subsystems.rendersystem { throw new ArgumentError("Parameter shadowRendererConstructor is null"); } - if(this.§_-qS§) + if(this.name_qS) { throw new Error("Cannot add constructor: shadow system is ready"); } - if(this.§_-MI§ == null) + if(this.name_MI == null) { - this.§_-MI§ = new Vector.(); + this.name_MI = new Vector.(); } - var index:int = int(this.§_-MI§.indexOf(shadowRendererConstructor)); + var index:int = int(this.name_MI.indexOf(shadowRendererConstructor)); if(index < 0) { - this.§_-MI§.push(shadowRendererConstructor); + this.name_MI.push(shadowRendererConstructor); } } public function removeShadowRendererConstructor(shadowRendererConstructor:IShadowRendererConstructor) : void { var index:int = 0; - if(this.§_-MI§ != null) + if(this.name_MI != null) { - index = int(this.§_-MI§.indexOf(shadowRendererConstructor)); + index = int(this.name_MI.indexOf(shadowRendererConstructor)); if(index >= 0) { - this.§_-MI§.splice(index,1); + this.name_MI.splice(index,1); } } } public function getShadowSystem() : ShadowsSystem { - return this.§_-aD§; + return this.name_aD; } 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.name_aD.renderers.indexOf(renderer) < 0) { - this.§_-aD§.renderers.push(renderer); + this.name_aD.renderers.push(renderer); } } public function removeShadowRenderer(renderer:ShadowRenderer) : void { - var index:int = int(this.§_-aD§.renderers.indexOf(renderer)); + var index:int = int(this.name_aD.renderers.indexOf(renderer)); if(index >= 0) { - this.§_-aD§.renderers.splice(index,1); + this.name_aD.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.name_jy[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.name_jy[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.name_qH[name]; if(overlay == null) { overlay = new Sprite(); - this.§_-qH§[name] = overlay; + this.name_qH[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.name_qH[name]; if(overlay != null) { - delete this.§_-qH§[name]; + delete this.name_qH[name]; overlay.parent.removeChild(overlay); } } @@ -537,12 +537,12 @@ package alternativa.tanks.game.subsystems.rendersystem public function addPostRenderer(renderer:IRenderer) : void { - this.§_-WV§.add(renderer); + this.name_WV.add(renderer); } public function removePostRenderer(renderer:IRenderer) : void { - this.§_-WV§.remove(renderer); + this.name_WV.remove(renderer); } public function each(effect:IGraphicEffect) : void @@ -563,11 +563,11 @@ package alternativa.tanks.game.subsystems.rendersystem public function setCameraController(controller:ICameraController) : void { - if(this.§_-lk§ == controller) + if(this.name_lk == controller) { return; } - this.§_-lk§ = controller; + this.name_lk = controller; controller.enable(); } @@ -578,13 +578,13 @@ package alternativa.tanks.game.subsystems.rendersystem public function disableCameraController() : void { - this.§_-EX§ = false; + this.name_EX = false; false; } public function enableCameraController() : void { - this.§_-EX§ = true; + this.name_EX = 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.name_qH) { 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(name_Uw.getTaskInterface(IInput)); input.addKeyboardListener(KeyboardEventType.KEY_DOWN,this.onToggleDebugKey,Keyboard.F7); input.addKeyboardListener(KeyboardEventType.KEY_DOWN,this.onToggleDebugKey,Keyboard.F8); input.addKeyboardListener(KeyboardEventType.KEY_DOWN,this.onToggleDebugKey,Keyboard.TAB); @@ -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.name_qH) { 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.name_qH) { 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.name_lk != null && this.name_EX) { - this.§_-lk§.update(); + this.name_lk.update(); } this.camera.calculateAxis(); - for(i = 0; i < this.§_-WV§.numRenderers; i++) + for(i = 0; i < this.name_WV.numRenderers; i++) { - renderer = this.§_-WV§.renderers[i]; + renderer = this.name_WV.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.name_aD.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.name_pR.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.name_jy[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.name_pR) { deferredAction = _loc5_; _loc5_; deferredAction.execute(this.stage3d); } - this.§_-pR§ = null; + this.name_pR = null; } private function onToggleDebugKey(eventType:KeyboardEventType, keyCode:uint) : void @@ -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.name_i6.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..d12529c 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 name_hg:Dictionary; - private var §_-Wf§:Vector.; + private var name_Wf:Vector.; public function ResourceManager() { super(); - this.§_-hg§ = new Dictionary(); + this.name_hg = 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.name_hg[resource]); + this.name_hg[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.name_hg[resource]); if(refCount > 0) { if(refCount == 1) @@ -55,7 +55,7 @@ package alternativa.tanks.game.subsystems.rendersystem } else { - this.§_-hg§[resource] = refCount - 1; + this.name_hg[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.name_Wf != null) { - for each(resource in this.§_-Wf§) + for each(resource in this.name_Wf) { resource.upload(context); } - this.§_-Wf§ = null; + this.name_Wf = 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.name_hg) { Resource(resource).dispose(); } } - this.§_-Wf§ = null; - this.§_-hg§ = new Dictionary(); + this.name_Wf = null; + this.name_hg = 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.name_Wf.length); if(num == 1) { - this.§_-Wf§ = null; + this.name_Wf = null; } else { - this.§_-Wf§[index] = this.§_-Wf§[--num]; - this.§_-Wf§.length = num; + this.name_Wf[index] = this.name_Wf[--num]; + this.name_Wf.length = num; } } } else { resource.dispose(); - delete this.§_-hg§[resource]; + delete this.name_hg[resource]; } } private function getQueuedIndex(resource:Resource) : int { - if(this.§_-Wf§ == null) + if(this.name_Wf == null) { return -1; } - return this.§_-Wf§.indexOf(resource); + return this.name_Wf.indexOf(resource); } private function queue(resource:Resource) : void { - if(this.§_-Wf§ == null) + if(this.name_Wf == null) { - this.§_-Wf§ = new Vector.(); + this.name_Wf = new Vector.(); } - this.§_-Wf§.push(resource); + this.name_Wf.push(resource); } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/SkyMaterial.as b/src/alternativa/tanks/game/subsystems/rendersystem/SkyMaterial.as index 4c7833e..d1d587d 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 name_L4:Boolean = false; public function SkyMaterial(diffuseMap:TextureResource = null, opacityMap:TextureResource = null, alpha:Number = 1) { @@ -181,7 +181,7 @@ package alternativa.tanks.game.subsystems.rendersystem { return; } - if(!this.§_-L4§ && this.opacityMap != null && this.opacityMap.alternativa3d::_texture == null) + if(!this.name_L4 && 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.name_L4 && !this.opacityMap) { key = 0; } - else if(!this.§_-L4§ && Boolean(this.opacityMap)) + else if(!this.name_L4 && Boolean(this.opacityMap)) { key = 1; } - else if(this.§_-L4§) + else if(this.name_L4) { key = 2; } @@ -218,14 +218,14 @@ package alternativa.tanks.game.subsystems.rendersystem 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.name_EM,surface.indexBegin,surface.numTriangles,program); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aPosition"),positionBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.POSITION],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.POSITION]); drawUnit.alternativa3d::setVertexBufferAt(program.vertexShader.getVariableIndex("aUV"),uvBuffer,geometry.alternativa3d::_attributesOffsets[VertexAttributes.TEXCOORDS[0]],VertexAttributes.alternativa3d::FORMATS[VertexAttributes.TEXCOORDS[0]]); object.alternativa3d::setTransformConstants(drawUnit,surface,program.vertexShader,camera); drawUnit.alternativa3d::setProjectionConstants(camera,program.vertexShader.getVariableIndex("cProjMatrix"),object.alternativa3d::localToCameraTransform); drawUnit.alternativa3d::setFragmentConstantsFromNumbers(program.fragmentShader.getVariableIndex("cAlpha"),0,0,0,this.alpha); drawUnit.alternativa3d::setTextureAt(program.fragmentShader.getVariableIndex("sTexture"),this.diffuseMap.alternativa3d::_texture); - if(Boolean(this.opacityMap) && !this.§_-L4§) + if(Boolean(this.opacityMap) && !this.name_L4) { 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.name_L4 || 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..c0bae77 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 name_9k:Vector.; public function SpotLightList(container:Object3D) { super(); this.container = container; - this.§_-9k§ = new Vector.(); + this.name_9k = new Vector.(); } public function add(light:SpotLight) : void { - if(this.§_-9k§.indexOf(light) < 0) + if(this.name_9k.indexOf(light) < 0) { - this.§_-9k§.push(light); + this.name_9k.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.name_9k.indexOf(light)); if(index >= 0) { - this.§_-9k§[index] = this.§_-9k§[this.§_-9k§.length - 1]; - this.§_-9k§.length -= 1; + this.name_9k[index] = this.name_9k[this.name_9k.length - 1]; + this.name_9k.length -= 1; } } public function get size() : int { - return this.§_-9k§.length; + return this.name_9k.length; } public function get lights() : Vector. { - return Vector.(this.§_-9k§); + return Vector.(this.name_9k); } public function getLightAt(i:int) : SpotLight { - return this.§_-9k§[i]; + return this.name_9k[i]; } } } diff --git a/src/alternativa/tanks/game/subsystems/rendersystem/TextMarker.as b/src/alternativa/tanks/game/subsystems/rendersystem/TextMarker.as index d84d203..2942fd2 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 name_Ee: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.name_Ee = true; } public function kill() : void { - this.§_-Ee§ = false; + this.name_Ee = 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.name_Ee; } public function addedToRenderSystem(system:RenderSystem) : void diff --git a/src/alternativa/tanks/game/usertitle/EffectIndicator.as b/src/alternativa/tanks/game/usertitle/EffectIndicator.as index 82657de..aa52dbd 100644 --- a/src/alternativa/tanks/game/usertitle/EffectIndicator.as +++ b/src/alternativa/tanks/game/usertitle/EffectIndicator.as @@ -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 name_oz:int; private var icon:BitmapData; @@ -56,13 +56,13 @@ package alternativa.tanks.game.usertitle private var colorTransform:ColorTransform = new ColorTransform(); - private var §_-im§:int; + private var name_im:int; - private var §_-Jj§:Blinker; + private var name_Jj:Blinker; private var alpha:Number = 1; - private var §_-aw§:Boolean; + private var name_aw:Boolean; private var x:int; @@ -72,22 +72,22 @@ package alternativa.tanks.game.usertitle private var state:int; - private var §_-VQ§:Boolean; + private var name_VQ:Boolean; public function EffectIndicator(effectId:int, blinkingTime:int, userTitle:UserTitle, initialBlinkInterval:int, blinkIntervalDecrement:int) { super(); - this.§_-oz§ = effectId; + this.name_oz = effectId; this.icon = icons[effectId]; this.blinkingTime = blinkingTime; this.userTitle = userTitle; - this.§_-Jj§ = new Blinker(initialBlinkInterval,20,blinkIntervalDecrement,MIN_ALPHA,1,10); + this.name_Jj = new Blinker(initialBlinkInterval,20,blinkIntervalDecrement,MIN_ALPHA,1,10); this.state = STATE_HIDDEN; } public function get effectId() : int { - return this.§_-oz§; + return this.name_oz; } public function isVisible() : Boolean @@ -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.name_aw = true; } - this.§_-im§ = getTimer() + duration - this.blinkingTime; - this.§_-VQ§ = false; + this.name_im = getTimer() + duration - this.blinkingTime; + this.name_VQ = false; this.alpha = 1; if(this.state == STATE_HIDDEN) { @@ -129,12 +129,12 @@ package alternativa.tanks.game.usertitle return; } this.state |= STATE_HIDING; - this.§_-Jj§.setMinValue(0); - if(!this.§_-VQ§) + this.name_Jj.setMinValue(0); + if(!this.name_VQ) { - this.§_-im§ = 0; - this.§_-Jj§.init(getTimer()); - this.§_-VQ§ = true; + this.name_im = 0; + this.name_Jj.init(getTimer()); + this.name_VQ = true; } } @@ -153,12 +153,12 @@ package alternativa.tanks.game.usertitle { this.x = x; this.y = y; - this.§_-aw§ = true; + this.name_aw = true; } public function forceRedraw() : void { - this.§_-aw§ = true; + this.name_aw = true; } public function update(now:int, delta:int, texture:BitmapData) : Boolean @@ -168,13 +168,13 @@ package alternativa.tanks.game.usertitle { return false; } - if(this.§_-aw§) + if(this.name_aw) { this.draw(texture); - this.§_-aw§ = false; + this.name_aw = false; updated = true; } - if(now > this.§_-im§) + if(now > this.name_im) { this.updateBlinking(now,delta,texture); updated = true; @@ -189,9 +189,9 @@ package alternativa.tanks.game.usertitle private function updateBlinking(now:int, delta:int, texture:BitmapData) : void { var newAlpha:Number = NaN; - if(this.§_-VQ§) + if(this.name_VQ) { - newAlpha = this.§_-Jj§.updateValue(now,delta); + newAlpha = this.name_Jj.updateValue(now,delta); if(newAlpha != this.alpha) { this.alpha = newAlpha; @@ -205,9 +205,9 @@ package alternativa.tanks.game.usertitle } else { - this.§_-Jj§.setMinValue(MIN_ALPHA); - this.§_-Jj§.init(now); - this.§_-VQ§ = true; + this.name_Jj.setMinValue(MIN_ALPHA); + this.name_Jj.init(now); + this.name_VQ = true; } } diff --git a/src/alternativa/tanks/game/usertitle/ProgressBar.as b/src/alternativa/tanks/game/usertitle/ProgressBar.as index 1d8e48f..2e0f4ef 100644 --- a/src/alternativa/tanks/game/usertitle/ProgressBar.as +++ b/src/alternativa/tanks/game/usertitle/ProgressBar.as @@ -18,11 +18,11 @@ package alternativa.tanks.game.usertitle private var skin:ProgressBarSkin; - private var §_-oy§:int; + private var name_oy:int; - private var §_-Da§:int; + private var name_Da:int; - private var §_-H2§:int; + private var name_H2:int; private var x:int; @@ -38,19 +38,19 @@ package alternativa.tanks.game.usertitle this.maxValue = maxValue; this.barWidth = barWidth; this.setSkin(skin); - this.rect = new Rectangle(x,y,barWidth,this.§_-Da§); + this.rect = new Rectangle(x,y,barWidth,this.name_Da); } public function setSkin(skin:ProgressBarSkin) : void { this.skin = skin; - this.§_-oy§ = skin.§_-XU§.width; - this.§_-Da§ = skin.§_-XU§.height; + this.name_oy = skin.name_XU.width; + this.name_Da = skin.name_XU.height; } public function get progress() : int { - return this.§_-H2§; + return this.name_H2; } public function set progress(value:int) : void @@ -63,7 +63,7 @@ package alternativa.tanks.game.usertitle { value = this.maxValue; } - this.§_-H2§ = value; + this.name_H2 = value; } public function draw(texture:BitmapData) : void @@ -72,44 +72,44 @@ package alternativa.tanks.game.usertitle var g:Graphics = canvas.graphics; g.clear(); matrix.ty = 0; - var displayWidth:int = this.barWidth * this.§_-H2§ / this.maxValue; - var w:int = this.barWidth - this.§_-oy§; - if(displayWidth >= this.§_-oy§) + var displayWidth:int = this.barWidth * this.name_H2 / this.maxValue; + var w:int = this.barWidth - this.name_oy; + if(displayWidth >= this.name_oy) { if(displayWidth == this.barWidth) { - this.drawFullBar(g,this.skin.§_-9Y§,this.skin.§_-j2§,this.skin.§_-oU§); + this.drawFullBar(g,this.skin.name_9Y,this.skin.name_j2,this.skin.name_oU); 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.name_9Y,null,false); + g.drawRect(0,0,this.name_oy,this.name_Da); + if(displayWidth > this.name_oy) { if(displayWidth > w) { displayWidth = w; } bgStart = displayWidth; - this.drawCenter(g,this.skin.§_-oU§,this.§_-oy§,displayWidth - this.§_-oy§); + this.drawCenter(g,this.skin.name_oU,this.name_oy,displayWidth - this.name_oy); } else { - bgStart = this.§_-oy§; + bgStart = this.name_oy; } } } if(bgStart == 0) { - this.drawFullBar(g,this.skin.§_-XU§,this.skin.§_-GY§,this.skin.§_-py§); + this.drawFullBar(g,this.skin.name_XU,this.skin.name_GY,this.skin.name_py); } else if(bgStart < this.barWidth) { - this.drawCenter(g,this.skin.§_-py§,bgStart,w - bgStart); + this.drawCenter(g,this.skin.name_py,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.name_GY,matrix,false); + g.drawRect(w,0,this.name_oy,this.name_Da); } g.endFill(); texture.fillRect(this.rect,0); @@ -120,22 +120,22 @@ package alternativa.tanks.game.usertitle private function drawFullBar(g:Graphics, leftTip:BitmapData, rightTip:BitmapData, center:BitmapData) : void { - var w:int = this.barWidth - this.§_-oy§; + var w:int = this.barWidth - this.name_oy; g.beginBitmapFill(leftTip,null,false); - g.drawRect(0,0,this.§_-oy§,this.§_-Da§); - matrix.tx = this.§_-oy§; + g.drawRect(0,0,this.name_oy,this.name_Da); + matrix.tx = this.name_oy; g.beginBitmapFill(center,matrix,true); - g.drawRect(this.§_-oy§,0,w - this.§_-oy§,this.§_-Da§); + g.drawRect(this.name_oy,0,w - this.name_oy,this.name_Da); matrix.tx = w; g.beginBitmapFill(rightTip,matrix,false); - g.drawRect(w,0,this.§_-oy§,this.§_-Da§); + g.drawRect(w,0,this.name_oy,this.name_Da); } private function drawCenter(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.name_Da); } } } diff --git a/src/alternativa/tanks/game/usertitle/ProgressBarSkin.as b/src/alternativa/tanks/game/usertitle/ProgressBarSkin.as index 1140dbf..61e7a0f 100644 --- a/src/alternativa/tanks/game/usertitle/ProgressBarSkin.as +++ b/src/alternativa/tanks/game/usertitle/ProgressBarSkin.as @@ -51,17 +51,17 @@ package alternativa.tanks.game.usertitle public static const WEAPONBAR:ProgressBarSkin = new ProgressBarSkin(0,weaponEmpty,weaponFull,4); - public var §_-XU§:BitmapData; + public var name_XU:BitmapData; - public var §_-9Y§:BitmapData; + public var name_9Y:BitmapData; - public var §_-GY§:BitmapData; + public var name_GY:BitmapData; - public var §_-j2§:BitmapData; + public var name_j2:BitmapData; - public var §_-py§:BitmapData; + public var name_py:BitmapData; - public var §_-oU§:BitmapData; + public var name_oU:BitmapData; public var color:uint; @@ -70,13 +70,13 @@ package alternativa.tanks.game.usertitle super(); this.color = color; var parts:BarParts = new BarParts(emptyBitmap,tipWidth); - this.§_-XU§ = parts.left; - this.§_-GY§ = parts.right; - this.§_-py§ = parts.center; + this.name_XU = parts.left; + this.name_GY = parts.right; + this.name_py = parts.center; parts = new BarParts(fullBitmap,tipWidth); - this.§_-9Y§ = parts.left; - this.§_-j2§ = parts.right; - this.§_-oU§ = parts.center; + this.name_9Y = parts.left; + this.name_j2 = parts.right; + this.name_oU = parts.center; } } } diff --git a/src/alternativa/tanks/game/usertitle/UserTitle.as b/src/alternativa/tanks/game/usertitle/UserTitle.as index abefac5..7f9ab99 100644 --- a/src/alternativa/tanks/game/usertitle/UserTitle.as +++ b/src/alternativa/tanks/game/usertitle/UserTitle.as @@ -85,7 +85,7 @@ package alternativa.tanks.game.usertitle private var sprite:Sprite3D; - private var §_-iy§:Rectangle; + private var name_iy:Rectangle; private var material:TextureMaterial; @@ -101,17 +101,17 @@ package alternativa.tanks.game.usertitle private var rankId:int; - private var §_-f1§:ProgressBar; + private var name_f1:ProgressBar; - private var §_-ie§:ProgressBar; + private var name_ie:ProgressBar; - private var §_-os§:Vector.; + private var name_os:Vector.; - private var §_-8o§:int; + private var name_8o:int; - private var §_-oS§:int; + private var name_oS:int; - private var §_-P4§:Boolean; + private var name_P4:Boolean; private var maxHealth:int; @@ -132,7 +132,7 @@ package alternativa.tanks.game.usertitle this.resourceManager = this.resourceManager; this.textureResource = new BitmapTextureResource(null); this.material = new TextureMaterial(this.textureResource); - this.material.§_-L4§ = true; + this.material.name_L4 = true; this.sprite = new Sprite3D(100,100,this.material); this.sprite.material = this.material; this.sprite.perspectiveScale = false; @@ -286,7 +286,7 @@ package alternativa.tanks.game.usertitle public function hideIndicators() : void { var indicatorId:int = 0; - if(this.§_-os§ != null && this.hasAllFlags(BIT_EFFECTS)) + if(this.name_os != null && this.hasAllFlags(BIT_EFFECTS)) { for each(indicatorId in indicatorTypes) { @@ -316,18 +316,18 @@ package alternativa.tanks.game.usertitle } if(this.isDirtyAndHasOption(BIT_HEALTH)) { - this.§_-f1§.setSkin(teamTypeSkin[this.teamType]); - this.§_-f1§.progress = MAX_PROGRESS * this.health / this.maxHealth; - this.§_-f1§.draw(this.texture); + this.name_f1.setSkin(teamTypeSkin[this.teamType]); + this.name_f1.progress = MAX_PROGRESS * this.health / this.maxHealth; + this.name_f1.draw(this.texture); } if(this.isDirtyAndHasOption(BIT_WEAPON)) { - this.§_-ie§.progress = this.weaponStatus; - this.§_-ie§.draw(this.texture); + this.name_ie.progress = this.weaponStatus; + this.name_ie.draw(this.texture); } if(this.isDirtyAndHasOption(BIT_EFFECTS)) { - for each(effectIndicator in this.§_-os§) + for each(effectIndicator in this.name_os) { effectIndicator.forceRedraw(); } @@ -356,21 +356,21 @@ package alternativa.tanks.game.usertitle 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.name_os.length); + if(this.name_P4) { - this.§_-P4§ = false; - x = this.§_-iy§.width + TEXTURE_MARGIN_2 - this.§_-8o§ * EFFECTS_ICON_SIZE - (this.§_-8o§ - 1) * EFFECTS_SPACING_X >> 1; + this.name_P4 = false; + x = this.name_iy.width + TEXTURE_MARGIN_2 - this.name_8o * EFFECTS_ICON_SIZE - (this.name_8o - 1) * EFFECTS_SPACING_X >> 1; for(i = 0; i < num; ) { - indicator = this.§_-os§[i]; + indicator = this.name_os[i]; if(indicator.isVisible()) { indicator.clear(this.texture); } if(!indicator.isHidden()) { - indicator.setPosition(x,this.§_-oS§); + indicator.setPosition(x,this.name_oS); x += EFFECTS_ICON_SIZE + EFFECTS_SPACING_X; } i++; @@ -379,7 +379,7 @@ package alternativa.tanks.game.usertitle } for(i = 0; i < num; ) { - indicator = this.§_-os§[i]; + indicator = this.name_os[i]; wereUpdated = indicator.update(now,delta,this.texture) || wereUpdated; i++; } @@ -388,8 +388,8 @@ package alternativa.tanks.game.usertitle private function changeVisibleIndicatorsNumber(increment:int) : void { - this.§_-8o§ += increment; - this.§_-P4§ = true; + this.name_8o += increment; + this.name_P4 = true; } private function updateConfiguration() : void @@ -457,7 +457,7 @@ package alternativa.tanks.game.usertitle this.textureResource.data = this.texture; this.sprite.width = width; this.sprite.height = height; - this.§_-iy§ = this.texture.rect; + this.name_iy = this.texture.rect; this.markDirty(BIT_LABEL | BIT_HEALTH | BIT_WEAPON | BIT_EFFECTS); } } @@ -485,20 +485,20 @@ package alternativa.tanks.game.usertitle { top += HEALTH_BAR_SPACING_Y; } - left = this.§_-iy§.width - BAR_WIDTH >> 1; - this.§_-f1§ = new ProgressBar(left,top,MAX_PROGRESS,BAR_WIDTH,teamTypeSkin[this.teamType]); + left = this.name_iy.width - BAR_WIDTH >> 1; + this.name_f1 = new ProgressBar(left,top,MAX_PROGRESS,BAR_WIDTH,teamTypeSkin[this.teamType]); top += BAR_HEIGHT; if(this.hasAllFlags(BIT_WEAPON)) { top += WEAPON_BAR_SPACING_Y; - this.§_-ie§ = new ProgressBar(left,top,MAX_PROGRESS,BAR_WIDTH,ProgressBarSkin.WEAPONBAR); + this.name_ie = new ProgressBar(left,top,MAX_PROGRESS,BAR_WIDTH,ProgressBarSkin.WEAPONBAR); top += BAR_HEIGHT; } } if(this.hasAllFlags(BIT_EFFECTS)) { top += EFFECTS_SPACING_Y; - this.§_-oS§ = top; + this.name_oS = top; this.createEffectsIndicators(); } } @@ -535,7 +535,7 @@ package alternativa.tanks.game.usertitle { var clientLog:IClientLog = null; var tmpBitmapData:BitmapData = this.texture.clone(); - tmpBitmapData.fillRect(this.§_-iy§,0); + tmpBitmapData.fillRect(this.name_iy,0); var labelWidth:int = RANK_ICON_SIZE + LABEL_SPACING + this.label.textWidth; var left:int = tmpBitmapData.width - labelWidth >> 1; matrix.tx = left; @@ -550,27 +550,27 @@ package alternativa.tanks.game.usertitle var skin:ProgressBarSkin = teamTypeSkin[this.teamType]; this.label.textColor = skin.color; tmpBitmapData.draw(this.label.getLabel(),matrix,null,null,null,true); - this.texture.applyFilter(tmpBitmapData,this.§_-iy§,new Point(),filter); + this.texture.applyFilter(tmpBitmapData,this.name_iy,new Point(),filter); tmpBitmapData.dispose(); } private function createEffectsIndicators() : void { var indicatorType:int = 0; - if(this.§_-os§ != null) + if(this.name_os != null) { return; } - this.§_-os§ = new Vector.(); + this.name_os = new Vector.(); for each(indicatorType in indicatorTypes) { if(indicatorType == EffectIndicator.TYPE_HEALTH) { - this.§_-os§.push(new EffectIndicator(indicatorType,100000,this,300,0)); + this.name_os.push(new EffectIndicator(indicatorType,100000,this,300,0)); } else { - this.§_-os§.push(new EffectIndicator(indicatorType,EFFECT_WARNING_TIME,this,300,30)); + this.name_os.push(new EffectIndicator(indicatorType,EFFECT_WARNING_TIME,this,300,30)); } } } @@ -580,12 +580,12 @@ package alternativa.tanks.game.usertitle var len:int = 0; var i:int = 0; var indicator:EffectIndicator = null; - if(this.§_-os§ != null) + if(this.name_os != null) { - len = int(this.§_-os§.length); + len = int(this.name_os.length); for(i = 0; i < len; ) { - indicator = this.§_-os§[i]; + indicator = this.name_os[i]; if(indicator.effectId == effectId) { return indicator; diff --git a/src/alternativa/tanks/game/usertitle/component/UserTitleComponent.as b/src/alternativa/tanks/game/usertitle/component/UserTitleComponent.as index dc74083..2734aac 100644 --- a/src/alternativa/tanks/game/usertitle/component/UserTitleComponent.as +++ b/src/alternativa/tanks/game/usertitle/component/UserTitleComponent.as @@ -20,37 +20,37 @@ package alternativa.tanks.game.usertitle.component private static var position:Vector3 = new Vector3(); - private var §_-Xa§:UserTitle; + private var name_Xa:UserTitle; private var chassisComponent:IChassisPhysicsComponent; - private var §_-lp§:IWeapon; + private var name_lp:IWeapon; private var localPlayer:Boolean; - private var §_-z§:EventStates; + private var name_z:EventStates; private var gameKernel:GameKernel; - private var §case §:Boolean; + private var name_case:Boolean; - private var §_-S3§:VisibleState; + private var name_S3:VisibleState; private var titleRenderer:IUserTitleRenderer; public function UserTitleComponent(maxHealth:int, rankIcon:IRankIcon, name:String, localPlayer:Boolean, label:IUserName, configFlags:int, titleRenderer:IUserTitleRenderer) { super(); - this.§_-Xa§ = new UserTitle(maxHealth,rankIcon,label); + this.name_Xa = new UserTitle(maxHealth,rankIcon,label); this.localPlayer = localPlayer; this.titleRenderer = titleRenderer; - this.§_-Xa§.setLabelText(name); - this.§_-Xa§.setConfiguration(configFlags); + this.name_Xa.setLabelText(name); + this.name_Xa.setConfiguration(configFlags); } public function isOnScene() : Boolean { - return this.§case §; + return this.name_case; } public function isLocalPlayer() : Boolean @@ -60,31 +60,31 @@ package alternativa.tanks.game.usertitle.component public function setMaxHealth(maxHealth:int) : void { - this.§_-Xa§.setMaxHealth(maxHealth); + this.name_Xa.setMaxHealth(maxHealth); } public function showIndicator(indicatorId:int, duration:int) : void { - this.§_-Xa§.showIndicator(indicatorId,duration); + this.name_Xa.showIndicator(indicatorId,duration); } public function hideIndicator(indicatorId:int) : void { - this.§_-Xa§.hideIndicator(indicatorId); + this.name_Xa.hideIndicator(indicatorId); } override public function initComponent() : void { this.chassisComponent = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); - this.§_-lp§ = IWeapon(entity.getComponent(IWeapon)); - this.§_-z§ = new EventStates(); - this.§_-S3§ = new VisibleState(this); - this.§_-z§.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,this.§_-S3§); - this.§_-z§.setEventState(entity,TankEvents.SET_ACTIVE_STATE,this.§_-S3§); - this.§_-z§.setEventState(entity,TankEvents.SET_DEAD_STATE,new DeadState(this)); + this.name_lp = IWeapon(entity.getComponent(IWeapon)); + this.name_z = new EventStates(); + this.name_S3 = new VisibleState(this); + this.name_z.setEventState(entity,TankEvents.SET_ACTIVATING_STATE,this.name_S3); + this.name_z.setEventState(entity,TankEvents.SET_ACTIVE_STATE,this.name_S3); + this.name_z.setEventState(entity,TankEvents.SET_DEAD_STATE,new DeadState(this)); var offSceneState:OffSceneState = new OffSceneState(this); - this.§_-z§.setEventState(entity,TankEvents.SET_RESPAWN_STATE,offSceneState); - this.§_-z§.§_-Ah§ = offSceneState; + this.name_z.setEventState(entity,TankEvents.SET_RESPAWN_STATE,offSceneState); + this.name_z.name_Ah = offSceneState; entity.addEventHandler(TankEvents.SET_HEALTH,this.onSetHealth); } @@ -96,70 +96,70 @@ package alternativa.tanks.game.usertitle.component override public function addToGame(gameKernel:GameKernel) : void { this.gameKernel = gameKernel; - this.§_-Xa§.setResourceManager(gameKernel.getRenderSystem()); + this.name_Xa.setResourceManager(gameKernel.getRenderSystem()); } override public function removeFromGame(gameKernel:GameKernel) : void { - this.§_-z§.§_-Ah§.stop(); + this.name_z.name_Ah.stop(); this.removeFromScene(); } public function addToScene() : void { var renderSystem:RenderSystem = null; - if(!this.§case §) + if(!this.name_case) { renderSystem = this.gameKernel.getRenderSystem(); if(this.localPlayer) { - this.§_-Xa§.setLocal(); + this.name_Xa.setLocal(); } - this.§_-Xa§.addToContainer(renderSystem.getDynamicObjectsContainer()); + this.name_Xa.addToContainer(renderSystem.getDynamicObjectsContainer()); renderSystem.addRenderer(this); - this.§case § = true; + this.name_case = true; } } public function removeFromScene() : void { - if(this.§case §) + if(this.name_case) { - this.§_-Xa§.removeFromContainer(); + this.name_Xa.removeFromContainer(); this.gameKernel.getRenderSystem().removeRenderer(this); - this.§case § = false; + this.name_case = false; } } public function setHealth(health:Number) : void { - this.§_-Xa§.setHealth(health); + this.name_Xa.setHealth(health); } public function setRank(rankId:int) : void { - this.§_-Xa§.setRank(rankId); + this.name_Xa.setRank(rankId); } public function render() : void { this.chassisComponent.getTurretMountPoint(position); position.transform4(this.chassisComponent.getInterpolatedMatrix()); - if(this.localPlayer && this.§_-lp§ != null) + if(this.localPlayer && this.name_lp != null) { - this.§_-Xa§.setWeaponStatus(this.§_-lp§.getStatus() * 100); + this.name_Xa.setWeaponStatus(this.name_lp.getStatus() * 100); } else { position.z += REMOTE_LABEL_OFFSET_Z; } this.titleRenderer.renderUserTitle(entity,this); - this.§_-Xa§.update(position,TimeSystem.time,TimeSystem.timeDelta); + this.name_Xa.update(position,TimeSystem.time,TimeSystem.timeDelta); } public function getTitle() : UserTitle { - return this.§_-Xa§; + return this.name_Xa; } } } diff --git a/src/alternativa/tanks/game/utils/Task.as b/src/alternativa/tanks/game/utils/Task.as index b497ad0..c3eb040 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 name_UZ:TaskSequence; public function Task() { @@ -16,12 +16,12 @@ package alternativa.tanks.game.utils internal function set taskSequence(value:TaskSequence) : void { - this.§_-UZ§ = value; + this.name_UZ = value; } final protected function completeTask() : void { - this.§_-UZ§.taskComplete(this); + this.name_UZ.taskComplete(this); } } } diff --git a/src/alternativa/tanks/game/utils/TaskSequence.as b/src/alternativa/tanks/game/utils/TaskSequence.as index d84190a..b74886b 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 name_LN:int; public function TaskSequence() { @@ -28,7 +28,7 @@ package alternativa.tanks.game.utils { if(this.tasks.length > 0) { - this.§_-LN§ = 0; + this.name_LN = 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.name_LN]).run(); } internal function taskComplete(task:Task) : void { - if(++this.§_-LN§ < this.tasks.length) + if(++this.name_LN < 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..a24ea80 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 name_IZ:Number = 0; - public var §_-6u§:Number = 0; + public var name_6u:Number = 0; private var maxTicks:int; - private var §_-Et§:int; + private var name_Et:int; - private var §_-Jl§:int; + private var name_Jl:int; - private var §_-45§:int; + private var name_45:int; public function TimeStat(maxTicks:int) { @@ -24,19 +24,19 @@ package alternativa.tanks.game.utils public function startTick() : void { - this.§_-Jl§ = getTimer(); + this.name_Jl = getTimer(); } public function stopTick() : void { - this.§_-45§ += getTimer() - this.§_-Jl§; - ++this.§_-Et§; - if(this.§_-Et§ >= this.maxTicks) + this.name_45 += getTimer() - this.name_Jl; + ++this.name_Et; + if(this.name_Et >= this.maxTicks) { - this.§_-IZ§ = this.§_-45§ / this.§_-Et§; - this.§_-6u§ = this.§_-Et§ * 1000 / this.§_-45§; - this.§_-Et§ = 0; - this.§_-45§ = 0; + this.name_IZ = this.name_45 / this.name_Et; + this.name_6u = this.name_Et * 1000 / this.name_45; + this.name_Et = 0; + this.name_45 = 0; } } } diff --git a/src/alternativa/tanks/game/utils/list/List.as b/src/alternativa/tanks/game/utils/list/List.as index 1527c68..404c845 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 name_M0: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.name_M0; } 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.name_M0; } } } diff --git a/src/alternativa/tanks/game/utils/list/ListIteratorImpl.as b/src/alternativa/tanks/game/utils/list/ListIteratorImpl.as index 4b39420..a24be6d 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 name_M0:int; - private var §_-9H§:ListItem; + private var name_9H:ListItem; - private var §_-4o§:ListItem; + private var name_4o:ListItem; public function ListIteratorImpl(list:List) { super(); this.list = list; - this.§_-M0§ = list.§_-M0§; - this.§_-4o§ = list.head; - this.§_-9H§ = this.§_-4o§.next; + this.name_M0 = list.name_M0; + this.name_4o = list.head; + this.name_9H = this.name_4o.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.name_4o; + item.next = this.name_9H; + this.name_4o.next = item; + this.name_9H.prev = item; + this.name_4o = item; this.incChangeCounter(); } public function hasNext() : Boolean { this.validateList(); - return this.§_-9H§ != this.list.tail; + return this.name_9H != this.list.tail; } public function hasPrevious() : Boolean { this.validateList(); - return this.§_-4o§ != this.list.head; + return this.name_4o != this.list.head; } public function next() : Object { this.validateList(); - if(this.§_-9H§ == this.list.tail) + if(this.name_9H == this.list.tail) { throw new NoSuchElementError(); } - this.§_-4o§ = this.§_-9H§; - this.§_-9H§ = this.§_-9H§.next; - return this.§_-4o§.data; + this.name_4o = this.name_9H; + this.name_9H = this.name_9H.next; + return this.name_4o.data; } public function previous() : Object { this.validateList(); - if(this.§_-4o§ == this.list.head) + if(this.name_4o == this.list.head) { throw new NoSuchElementError(); } - this.§_-9H§ = this.§_-4o§; - this.§_-4o§ = this.§_-4o§.prev; - return this.§_-9H§.data; + this.name_9H = this.name_4o; + this.name_4o = this.name_4o.prev; + return this.name_9H.data; } private function validateList() : void { - if(this.§_-M0§ != this.list.§_-M0§) + if(this.name_M0 != this.list.name_M0) { 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.name_M0; + this.list.name_M0 = this.name_M0; } } } diff --git a/src/alternativa/tanks/game/utils/objectpool/ObjectPoolManager.as b/src/alternativa/tanks/game/utils/objectpool/ObjectPoolManager.as index d263785..2572653 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 name_Jm: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.name_Jm[objectClass]; if(pool == null) { pool = new ObjectPool(objectClass); - this.§_-Jm§[objectClass] = pool; + this.name_Jm[objectClass] = pool; } return pool; } diff --git a/src/alternativa/tanks/game/weapons/ContinuousActionGunPlatformComponent.as b/src/alternativa/tanks/game/weapons/ContinuousActionGunPlatformComponent.as index 2e424b4..a132343 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 name_lp:IContinuousActionWeapon; private var baseTime:Number; - private var §_-Lq§:Boolean; + private var name_Lq:Boolean; - private var §_-3§:Boolean; + private var name_3:Boolean; - private var §_-Rr§:Boolean; + private var name_Rr:Boolean; - private var §_-f3§:Boolean; + private var name_f3:Boolean; private var isLocal:Boolean; private var gameKernel:GameKernel; - private var §_-hE§:ILogic; + private var name_hE: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.name_Rr; } public function set enabled(value:Boolean) : void { - if(this.§_-Rr§ != value) + if(this.name_Rr != value) { - this.§_-Rr§ = value; + this.name_Rr = value; if(value) { - if(this.§_-3§) + if(this.name_3) { 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.name_lp = 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.name_hE = gameKernel.getLogicSystem2(); } override public function removeFromGame(gameKernel:GameKernel) : void { - this.§_-hE§ = null; + this.name_hE = null; this.gameKernel = null; } public function getStatus() : Number { - return this.getCurrentEnergy(TimeSystem.timeSeconds,this.§_-Lq§) / this.energyCapacity; + return this.getCurrentEnergy(TimeSystem.timeSeconds,this.name_Lq) / this.energyCapacity; } public function pullTrigger() : void { - if(!this.§_-3§) + if(!this.name_3) { this.getLogger().log("gun","ContinuousActionGunPlatformComponent::pullTrigger()"); - this.§_-3§ = true; + this.name_3 = true; this.activate(); this.enableLogic(); } @@ -117,10 +117,10 @@ package alternativa.tanks.game.weapons public function releaseTrigger() : void { - if(this.§_-3§) + if(this.name_3) { this.getLogger().log("gun","ContinuousActionGunPlatformComponent::releaseTrigger()"); - this.§_-3§ = false; + this.name_3 = 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.name_Lq); if(currentEnergy > 0) { - this.§_-lp§.update(); + this.name_lp.update(); } else { @@ -173,19 +173,19 @@ package alternativa.tanks.game.weapons private function enableLogic() : void { - if(!this.§_-f3§ && this.§_-Rr§) + if(!this.name_f3 && this.name_Rr) { - this.§_-f3§ = true; - this.§_-hE§.addLogicUnit(this); + this.name_f3 = true; + this.name_hE.addLogicUnit(this); } } private function disableLogic() : void { - if(this.§_-f3§) + if(this.name_f3) { - this.§_-f3§ = false; - this.§_-hE§.removeLogicUnit(this); + this.name_f3 = false; + this.name_hE.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.name_Lq && this.name_Rr) { - this.§_-Lq§ = true; - this.§_-lp§.start(); + this.name_Lq = true; + this.name_lp.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.name_Lq) { - this.§_-Lq§ = false; - this.§_-lp§.stop(); + this.name_Lq = false; + this.name_lp.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..efa3614 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 name_Rr:Boolean; - private var §_-3§:Boolean; + private var name_3:Boolean; - private var §_-f3§:Boolean; + private var name_f3:Boolean; - private var §_-hE§:ILogic; + private var name_hE:ILogic; private var gameKernel:GameKernel; private var baseTime:int; - private var §_-g8§:int; + private var name_g8:int; - private var §_-Zu§:ITurretPhysicsComponent; + private var name_Zu:ITurretPhysicsComponent; private var chassisComponent:IChassisPhysicsComponent; - private var §_-bQ§:IWeaponShotEffects; + private var name_bQ:IWeaponShotEffects; - private var §_-eN§:int; + private var name_eN: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.name_Zu = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); this.chassisComponent = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); - this.§_-bQ§ = IWeaponShotEffects(entity.getComponentStrict(IWeaponShotEffects)); + this.name_bQ = 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.name_hE = gameKernel.getLogicSystem2(); } override public function removeFromGame(gameKernel:GameKernel) : void { - this.§_-hE§ = null; + this.name_hE = null; this.gameKernel = null; } public function pullTrigger() : void { - if(!this.§_-3§) + if(!this.name_3) { - this.§_-3§ = true; - if(this.§_-Rr§) + this.name_3 = true; + if(this.name_Rr) { this.enableLogic(); } @@ -148,9 +148,9 @@ package alternativa.tanks.game.weapons public function releaseTrigger() : void { - if(this.§_-3§) + if(this.name_3) { - this.§_-3§ = false; + this.name_3 = 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.name_g8 && currentEnergy >= this.energyPerShot) { - this.§_-g8§ = now + this.reloadTime; + this.name_g8 = 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.name_Zu.getGunData(this.barrelIndex,barrelOrigin,gunDirection,gunElevationAxis); + barrelLength = Number(this.name_Zu.getBarrelLength(this.barrelIndex)); muzzlePosition.copy(barrelOrigin).addScaled(barrelLength,gunDirection); - shotId = this.§_-eN§++; + shotId = this.name_eN++; 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.name_Zu.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.name_Zu.getBarrelLength(barrelIndex)); + this.name_Zu.getGunData(barrelIndex,barrelOrigin,gunDirection,gunElevationAxis); muzzlePosition.copy(barrelOrigin).addScaled(barrelLength,gunDirection); this.doShowShotEffects(shotType,barrelIndex,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); var round:IGenericRound = this.ammunition.getRound(shotType,this.maxRange); @@ -221,17 +221,17 @@ package alternativa.tanks.game.weapons public function get enabled() : Boolean { - return this.§_-Rr§; + return this.name_Rr; } public function set enabled(value:Boolean) : void { - if(this.§_-Rr§ != value) + if(this.name_Rr != value) { - this.§_-Rr§ = value; - if(this.§_-Rr§) + this.name_Rr = value; + if(this.name_Rr) { - if(this.§_-3§) + if(this.name_3) { 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.name_bQ.createShotEffects(barrelIndex,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); } } @@ -265,19 +265,19 @@ package alternativa.tanks.game.weapons private function enableLogic() : void { - if(!this.§_-f3§) + if(!this.name_f3) { - this.§_-f3§ = true; - this.§_-hE§.addLogicUnit(this); + this.name_f3 = true; + this.name_hE.addLogicUnit(this); } } private function disableLogic() : void { - if(this.§_-f3§) + if(this.name_f3) { - this.§_-f3§ = false; - this.§_-hE§.removeLogicUnit(this); + this.name_f3 = false; + this.name_hE.removeLogicUnit(this); } } diff --git a/src/alternativa/tanks/game/weapons/InstantShotWeaponComponent.as b/src/alternativa/tanks/game/weapons/InstantShotWeaponComponent.as index f6218a5..5c4aaf1 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 name_g8:int; - private var §_-Zu§:ITurretPhysicsComponent; + private var name_Zu:ITurretPhysicsComponent; private var chassisComponent:IChassisPhysicsComponent; - private var §_-bQ§:IWeaponShotEffects; + private var name_bQ:IWeaponShotEffects; - private var §_-hE§:ILogic; + private var name_hE:ILogic; - private var §_-Rr§:Boolean; + private var name_Rr:Boolean; - private var §_-3§:Boolean; + private var name_3:Boolean; - private var §_-f3§:Boolean; + private var name_f3:Boolean; - private var §_-eN§:int; + private var name_eN: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.name_Zu = ITurretPhysicsComponent(entity.getComponentStrict(ITurretPhysicsComponent)); this.chassisComponent = IChassisPhysicsComponent(entity.getComponentStrict(IChassisPhysicsComponent)); - this.§_-bQ§ = IWeaponShotEffects(entity.getComponentStrict(IWeaponShotEffects)); + this.name_bQ = 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.name_hE = gameKernel.getLogicSystem2(); } override public function removeFromGame(gameKernel:GameKernel) : void { - this.§_-hE§ = null; + this.name_hE = 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.name_g8) / this.reloadTime; return readiness > 1 ? 1 : readiness; } public function pullTrigger() : void { - if(!this.§_-3§) + if(!this.name_3) { - this.§_-3§ = true; - if(this.§_-Rr§) + this.name_3 = true; + if(this.name_Rr) { this.enableLogic(); } @@ -130,9 +130,9 @@ package alternativa.tanks.game.weapons public function releaseTrigger() : void { - if(this.§_-3§) + if(this.name_3) { - this.§_-3§ = false; + this.name_3 = 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.name_g8) { return; } - this.§_-g8§ = TimeSystem.time + this.reloadTime; + this.name_g8 = 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.name_Zu.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); + var barrelLength:Number = Number(this.name_Zu.getBarrelLength(BARREL_INDEX)); muzzlePosition.copy(barrelOrigin).addScaled(barrelLength,gunDirection); this.doShowShotEffects(barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); - var shotId:int = this.§_-eN§++; + var shotId:int = this.name_eN++; var shooterBody:Body = this.chassisComponent.getBody(); this.targetingSystem.calculateShotDirection(shooterBody,muzzlePosition,barrelOrigin,gunDirection,barrelLength,gunElevationAxis,GameMathUtils.BIG_VALUE,shotDirection); var round:IGenericRound = this.ammunition.getRound(); @@ -166,17 +166,17 @@ package alternativa.tanks.game.weapons public function get enabled() : Boolean { - return this.§_-Rr§; + return this.name_Rr; } public function set enabled(value:Boolean) : void { - if(this.§_-Rr§ != value) + if(this.name_Rr != value) { - this.§_-Rr§ = value; - if(this.§_-Rr§) + this.name_Rr = value; + if(this.name_Rr) { - if(this.§_-3§) + if(this.name_3) { 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.name_Zu.getGunData(BARREL_INDEX,barrelOrigin,gunDirection,gunElevationAxis); + muzzlePosition.copy(barrelOrigin).addScaled(this.name_Zu.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.name_bQ.createShotEffects(BARREL_INDEX,barrelOrigin,muzzlePosition,gunDirection,gunElevationAxis); } private function enableLogic() : void { - if(!this.§_-f3§) + if(!this.name_f3) { - this.§_-f3§ = true; - this.§_-hE§.addLogicUnit(this); + this.name_f3 = true; + this.name_hE.addLogicUnit(this); } } private function disableLogic() : void { - if(this.§_-f3§) + if(this.name_f3) { - this.§_-f3§ = false; - this.§_-hE§.removeLogicUnit(this); + this.name_f3 = false; + this.name_hE.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..80cf114 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 name_oF:Vector3 = new Vector3(); - private var §_-hV§:Vector3 = new Vector3(); + private var name_hV:Vector3 = new Vector3(); private var direction:Vector3 = new Vector3(); - private var §_-PL§:Number; + private var name_PL: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 name_LC:Vector.; private var effectsFactory:IEnergyRoundEffectsFactory; public function EnergyRoundComponent() { super(); - this.§_-LC§ = new Vector.(NUM_PERIPHERAL_RAYS); + this.name_LC = new Vector.(NUM_PERIPHERAL_RAYS); for(var i:int = 0; i < NUM_PERIPHERAL_RAYS; i++) { - this.§_-LC§[i] = new Vector3(); + this.name_LC[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.name_hV,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.name_LC[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.name_PL += deltaDistance; + if(this.name_PL > this.maxRange) { this.gameKernel.removeEntity(entity); } else { - this.§_-oF§.copy(this.§_-hV§); + this.name_oF.copy(this.name_hV); _vector.copy(this.direction).scale(deltaDistance); - this.§_-hV§.add(_vector); + this.name_hV.add(_vector); for(i = 0; i < NUM_PERIPHERAL_RAYS; i++) { - Vector3(this.§_-LC§[i]).add(_vector); + Vector3(this.name_LC[i]).add(_vector); } } return; } - this.§_-PL§ += hitTime; - if(this.§_-PL§ >= this.maxRange) + this.name_PL += hitTime; + if(this.name_PL >= 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.name_PL) * this.roundData.impactForce; body.addWorldForceScaled(rayHit.position,this.direction,impactForce); if(this.callback != null) { - this.callback.onEnergyRoundHit(this.shotId,rayHit.position,this.§_-PL§,body); + this.callback.onEnergyRoundHit(this.shotId,rayHit.position,this.name_PL,body); } } this.gameKernel.removeEntity(entity); @@ -203,14 +203,14 @@ package alternativa.tanks.game.weapons.ammunition.energy } ++this.ricochetCount; frameDistance += hitTime; - this.§_-PL§ += hitTime; + this.name_PL += hitTime; deltaDistance -= hitTime; - _vector.copy(this.§_-hV§).addScaled(hitTime,this.direction); + _vector.copy(this.name_hV).addScaled(hitTime,this.direction); this.effectsFactory.createRicochetEffects(_vector,_normal,this.direction); - this.§_-hV§.addScaled(hitTime,this.direction).addScaled(0.01,_normal); + this.name_hV.addScaled(hitTime,this.direction).addScaled(0.01,_normal); this.direction.addScaled(-2 * this.direction.dot(_normal),_normal); - this.§_-oF§.copy(this.§_-hV§).addScaled(-frameDistance,this.direction); - this.initRadialPoints(this.§_-hV§,this.direction,this.roundData.radius); + this.name_oF.copy(this.name_hV).addScaled(-frameDistance,this.direction); + this.initRadialPoints(this.name_hV,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.name_hV,this.name_oF).scale(interpolationCoeff).add(this.name_oF); 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.name_PL = 0; switch(this.shotType) { case EnergyShotType.CLOSE_SHOT: - this.§_-hV§.copy(barrelOrigin); + this.name_hV.copy(barrelOrigin); break; case EnergyShotType.NORMAL_SHOT: - this.§_-hV§.copy(muzzlePosition); + this.name_hV.copy(muzzlePosition); } - this.initRadialPoints(this.§_-hV§,shotDirection,this.roundData.radius); + this.initRadialPoints(this.name_hV,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.name_LC[0]).copy(centerPoint).add(v); for(var i:int = 1; i < NUM_PERIPHERAL_RAYS; i++) { v.transform3(_rotationMatrix); - Vector3(this.§_-LC§[i]).copy(centerPoint).add(v); + Vector3(this.name_LC[i]).copy(centerPoint).add(v); } } } diff --git a/src/alternativa/tanks/game/weapons/ammunition/railgun/MultybodyRaycastFilter.as b/src/alternativa/tanks/game/weapons/ammunition/railgun/MultybodyRaycastFilter.as index dcccdbb..b8148d2 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_By: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_By[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..1245370 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 name_YZ:Number; public function DebugSplashDamage(radius:Number) { super(); - this.§_-YZ§ = radius; + this.name_YZ = radius; } public function get radius() : Number { - return this.§_-YZ§; + return this.name_YZ; } 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..3b84a27 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 name_ea: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.name_ea = new SplashDamageRound(impactForce,weaponDistanceWeakening,splashDamage,splashDamageEffects,collisionDetector,debugSplashTargetFilter); + this.name_ea.setCallback(callback); } public function getRound() : IGenericRound { - return this.§_-ea§; + return this.name_ea; } } } 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 32f8c15..fe40f7d 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyExplosion.as +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyExplosion.as @@ -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); - setLife(§_-gV§[§_-kf§ - 1] + smokePrototype.lifeTime); + setLife(name_gV[name_kf - 1] + smokePrototype.lifeTime); } private function keyFrame1(keyTime:Number, time:Number) : void 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 746b917..51636cc 100644 --- a/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyShot.as +++ b/src/alternativa/tanks/game/weapons/ammunition/splashhit/debug/SmokyShot.as @@ -32,18 +32,18 @@ package alternativa.tanks.game.weapons.ammunition.splashhit.debug boundBox.maxY = 100; boundBox.maxZ = 100; addKey(0 * 0.03333333333333333,this.keyFrame1); - setLife(§_-gV§[§_-kf§ - 1] + shotPrototype.lifeTime); + setLife(name_gV[name_kf - 1] + shotPrototype.lifeTime); } private function keyFrame1(keyTime:Number, time:Number) : void { - pos.copyFrom(§_-cF§); + pos.copyFrom(name_cF); pos.scaleBy(time * 100 + 25); shotPrototype.createParticle(this,time,pos,random() * 6.28,1,1,1,0); - pos.copyFrom(§_-cF§); + pos.copyFrom(name_cF); pos.scaleBy(time * 300 + 32); shotPrototype.createParticle(this,time,pos,random() * 6.28,0.88,0.88,1,0); - pos.copyFrom(§_-cF§); + pos.copyFrom(name_cF); 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..d7ce695 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 name_9m: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.name_9m = 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.name_9m); + for(key in this.name_9m) { 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.name_9m[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.name_9m[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.name_9m; + this.name_9m = tmp; if(this.callback != null) { this.callback.onConicAreaWeaponTargetSetChange(this.targetToDistance); } } - for(key in this.§_-9m§) + for(key in this.name_9m) { - delete this.§_-9m§[key]; + delete this.name_9m[key]; } } } diff --git a/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as b/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as index 20e552d..167d932 100644 --- a/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as +++ b/src/alternativa/tanks/game/weapons/flamethrower/FlameThrower.as @@ -90,32 +90,32 @@ package alternativa.tanks.game.weapons.flamethrower addKey(keyTime,this.keyFrame1); i++; } - setLife(§_-gV§[§_-kf§ - 1] + smokePrototype2.lifeTime); + setLife(name_gV[name_kf - 1] + smokePrototype2.lifeTime); } private function keyFrame1(keyTime:Number, time:Number) : void { var ang:Number = 6 * 3.14 / 180; - dir.x = §_-cF§.x; - dir.y = §_-cF§.y; - dir.z = §_-cF§.z + 0.2; + dir.x = name_cF.x; + dir.y = name_cF.y; + dir.z = name_cF.z + 0.2; dir.normalize(); - this.randomDirection(§_-cF§,ang,pos); + this.randomDirection(name_cF,ang,pos); pos.scaleBy(time * 300 + 10); flashPrototype1.createParticle(this,time,pos,random() * 6.28,1,1,1,random() * flashPrototype1.atlas.rangeLength); - this.randomDirection(§_-cF§,ang,pos); + this.randomDirection(name_cF,ang,pos); pos.scaleBy((time - 0.03333333333333333) * 150 + 10); flashPrototype2.createParticle(this,time,pos,random() * 6.28,1,1,1,random() * flashPrototype1.atlas.rangeLength); - this.randomDirection(§_-cF§,ang,pos); + this.randomDirection(name_cF,ang,pos); pos.scaleBy((time - 0.03333333333333333 - 0.03333333333333333) * 80 + 10); flashPrototype3.createParticle(this,time,pos,random() * 6.28,1,1,1,random() * flashPrototype1.atlas.rangeLength); - this.randomDirection(§_-cF§,ang,pos); + this.randomDirection(name_cF,ang,pos); pos.scaleBy(time * 240 + 10); firePrototype.createParticle(this,time,pos,random() * 6.28,1,1,1,-6 * 0.03333333333333333 * firePrototype.atlas.fps); this.randomDirection(dir,ang,pos); pos.scaleBy(time * 300 + 10); firePrototype.createParticle(this,time,pos,random() * 6.28,1,1,1,-6 * 0.03333333333333333 * firePrototype.atlas.fps); - this.randomDirection(§_-cF§,ang,pos); + this.randomDirection(name_cF,ang,pos); pos.scaleBy(time * 300 + 10); smokePrototype1.createParticle(this,time,pos,random() * 6.28,1,1,1,random() * smokePrototype1.atlas.rangeLength); this.randomDirection(dir,ang,pos); diff --git a/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerGraphicEffect.as b/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerGraphicEffect.as index 2e4d109..018a5cf 100644 --- a/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerGraphicEffect.as +++ b/src/alternativa/tanks/game/weapons/flamethrower/FlamethrowerGraphicEffect.as @@ -44,9 +44,9 @@ package alternativa.tanks.game.weapons.flamethrower private var range:Number; - private var §_-n7§:Number; + private var name_n7:Number; - private var §_-er§:Number; + private var name_er:Number; private var maxParticles:int; @@ -54,9 +54,9 @@ package alternativa.tanks.game.weapons.flamethrower private var sfxData:FlamethrowerSFXData; - private var §_-lV§:Vector. = new Vector.(); + private var name_lV:Vector. = new Vector.(); - private var §_-Jx§:int; + private var name_Jx:int; private var numFrames:int; @@ -64,9 +64,9 @@ package alternativa.tanks.game.weapons.flamethrower private var dead:Boolean; - private var §_-ny§:int; + private var name_ny:int; - private var §_-jJ§:int; + private var name_jJ:int; private var collisionGroup:int = CollisionGroup.WEAPON | CollisionGroup.STATIC; @@ -76,7 +76,7 @@ package alternativa.tanks.game.weapons.flamethrower private var sideAxis:Vector3 = new Vector3(); - private var §_-6z§:Number; + private var name_6z:Number; private var renderSystem:RenderSystem; @@ -99,10 +99,10 @@ package alternativa.tanks.game.weapons.flamethrower { 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.name_6z = this.turret.getBarrelLength(BARREL_INDEX); + this.position.x = this.origin.x + this.direction.x * this.name_6z; + this.position.y = this.origin.y + this.direction.y * this.name_6z; + this.position.z = this.origin.z + this.direction.z * this.name_6z; this.flame.position = this.position; this.dir.x = this.direction.x; this.dir.y = this.direction.y; @@ -126,10 +126,10 @@ package alternativa.tanks.game.weapons.flamethrower 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.name_6z = this.turret.getBarrelLength(BARREL_INDEX); + this.position.x = this.origin.x + this.direction.x * this.name_6z; + this.position.y = this.origin.y + this.direction.y * this.name_6z; + this.position.z = this.origin.z + this.direction.z * this.name_6z; this.flame.position = this.position; this.dir.x = this.direction.x; this.dir.y = this.direction.y; @@ -151,11 +151,11 @@ package alternativa.tanks.game.weapons.flamethrower private function tryToAddParticle() : void { var offset:Number = Math.random() * 50; - if(!this.collisionDetector.raycastStatic(this.origin,this.direction,CollisionGroup.STATIC,this.§_-6z§ + offset,null,rayHit)) + if(!this.collisionDetector.raycastStatic(this.origin,this.direction,CollisionGroup.STATIC,this.name_6z + 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.name_6z; + sourcePosition.y = this.origin.y + this.direction.y * this.name_6z; + sourcePosition.z = this.origin.z + this.direction.z * this.name_6z; particleDirection.copy(this.direction); xAxis.copy(this.sideAxis); this.addParticle(sourcePosition,particleDirection,xAxis,offset); @@ -169,7 +169,7 @@ package alternativa.tanks.game.weapons.flamethrower var angle:Number = 2 * Math.PI * Math.random(); matrix.fromAxisAngle(direction,angle); sideAxis.transform3(matrix); - var d:Number = this.range * this.§_-er§ * Math.random(); + var d:Number = this.range * this.name_er * Math.random(); direction.x = direction.x * this.range + sideAxis.x * d; direction.y = direction.y * this.range + sideAxis.y * d; direction.z = direction.z * this.range + sideAxis.z * d; @@ -182,15 +182,15 @@ package alternativa.tanks.game.weapons.flamethrower 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.name_Jx++; + this.name_lV[_loc9_] = particle; } private function removeParticle(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.name_lV[index]; + this.name_lV[index] = this.name_lV[--this.name_Jx]; + this.name_lV[this.name_Jx] = null; particle.dispose(); } } diff --git a/src/alternativa/tanks/game/weapons/targeting/ConicAreaTargetingSystem.as b/src/alternativa/tanks/game/weapons/targeting/ConicAreaTargetingSystem.as index 151895a..74e01ac 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 name_HN: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 name_84:Vector3 = new Vector3(); - private var §_-2z§:Matrix3 = new Matrix3(); + private var name_2z:Matrix3 = new Matrix3(); - private var §_-FX§:Matrix3 = new Matrix3(); + private var name_FX: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.name_HN = 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.name_84.copy(barrelOrigin).addScaled(barrelLength - originOffset,gunDirection); _loc11_ = this.range + originOffset; - this.checkDirection(shooter,this.§_-84§,gunDirection,_loc11_); - this.§_-FX§.fromAxisAngle(gunDirection,Math.PI / this.numSteps); - _loc12_ = this.§_-HN§ / this.numRays; + this.checkDirection(shooter,this.name_84,gunDirection,_loc11_); + this.name_FX.fromAxisAngle(gunDirection,Math.PI / this.numSteps); + _loc12_ = this.name_HN / this.numRays; for(_loc13_ = 0; _loc13_ < this.numSteps; _loc13_++) { - this.processSector(shooter,this.§_-84§,_loc11_,gunDirection,this.sideAxis,this.numRays,_loc12_); - this.processSector(shooter,this.§_-84§,_loc11_,gunDirection,this.sideAxis,this.numRays,-_loc12_); - this.sideAxis.transform3(this.§_-FX§); + this.processSector(shooter,this.name_84,_loc11_,gunDirection,this.sideAxis,this.numRays,_loc12_); + this.processSector(shooter,this.name_84,_loc11_,gunDirection,this.sideAxis,this.numRays,-_loc12_); + this.sideAxis.transform3(this.name_FX); } } 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.name_2z.fromAxisAngle(rotationAxis,angleStep); this.rayDirection.copy(gunDirection); for(var i:int = 0; i < numRays; i++) { - this.rayDirection.transform3(this.§_-2z§); + this.rayDirection.transform3(this.name_2z); 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..cc01db5 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 name_KF: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.name_KF = 0; this.checkDirection(shooter,muzzlePosition,barrelDirection,maxDistance,0,result); this.checkSector(shooter,muzzlePosition,barrelDirection,gunElevationAxis,maxDistance,this.angleUp / this.numRaysUp,this.numRaysUp,result); this.checkSector(shooter,muzzlePosition,barrelDirection,gunElevationAxis,maxDistance,-this.angleDown / this.numRaysDown,this.numRaysDown,result); this.filter.body = null; - if(this.§_-KF§ == 0) + if(this.name_KF == 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.name_KF) { - this.§_-KF§ = targetPriority; + this.name_KF = 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..c8c6a68 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 name_IP:Number; - private var §_-3V§:Vector3 = new Vector3(); + private var name_3V: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.name_IP = maxDistance + 1; if(this.collisionDetector.raycast(barrelOrigin,barrelDirection,collisionMask,maxDistance,this.filter,this.rayHit)) { - this.§_-IP§ = this.rayHit.t; + this.name_IP = 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.name_3V.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.name_IP > maxDistance) { result.copy(barrelDirection); } else { - result.copy(this.§_-3V§); + result.copy(this.name_3V); } } @@ -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.name_IP) { targetBody = this.rayHit.primitive.body; if(targetBody != null && this.targetValidator.getTargetPriority(shooter,targetBody,0,0) > 0) { - this.§_-IP§ = this.rayHit.t; - this.§_-3V§.copy(rayDirection); + this.name_IP = this.rayHit.t; + this.name_3V.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..b0b94fd 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 name_Gs: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.name_Gs.name_By = new Dictionary(); + this.name_Gs.name_By[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.name_Gs,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.name_Gs.name_By[body] = true; this.origin.copy(this.rayHit.position); } - this.§_-Gs§.§_-By§ = null; + this.name_Gs.name_By = 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..be0e911 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 name_PT: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.name_PT.x = muzzlePosition.x; + this.name_PT.y = muzzlePosition.y; + this.name_PT.z = muzzlePosition.z + 20; + eff.position = this.name_PT; + this.name_PT.x = gunDirection.x; + this.name_PT.y = gunDirection.y; + this.name_PT.z = gunDirection.z; + eff.direction = this.name_PT; eff.scale = 3; this.gameKernel.getRenderSystem().addA3DEffect(eff); } diff --git a/src/alternativa/tanks/game/weapons/thunder/effects/ThunderShotEffect.as b/src/alternativa/tanks/game/weapons/thunder/effects/ThunderShotEffect.as index bcdfc36..8b5f92b 100644 --- a/src/alternativa/tanks/game/weapons/thunder/effects/ThunderShotEffect.as +++ b/src/alternativa/tanks/game/weapons/thunder/effects/ThunderShotEffect.as @@ -58,9 +58,9 @@ package alternativa.tanks.game.weapons.thunder.effects private var sprite3:Sprite3D; - private var §_-kg§:BlendedMaterial; + private var name_kg:BlendedMaterial; - private var §_-ld§:FillMaterial = new FillMaterial(16563726,0.1); + private var name_ld:FillMaterial = new FillMaterial(16563726,0.1); private var trail1:Trail; @@ -91,10 +91,10 @@ package alternativa.tanks.game.weapons.thunder.effects public function ThunderShotEffect(objectPool:ObjectPool) { super(objectPool); - this.§_-kg§ = new BlendedMaterial(); - this.§_-kg§.§_-L4§ = true; - this.§_-kg§.blendModeSource = Context3DBlendFactor.ONE; - this.§_-kg§.blendModeDestination = Context3DBlendFactor.ONE; + this.name_kg = new BlendedMaterial(); + this.name_kg.name_L4 = true; + this.name_kg.blendModeSource = Context3DBlendFactor.ONE; + this.name_kg.blendModeDestination = Context3DBlendFactor.ONE; this.createParticles(); } @@ -142,7 +142,7 @@ package alternativa.tanks.game.weapons.thunder.effects { var sprite:Sprite3D = new Sprite3D(size,size); sprite.rotation = 2 * Math.PI * Math.random(); - sprite.material = this.§_-kg§; + sprite.material = this.name_kg; return sprite; } diff --git a/src/alternativa/tanks/lightsmanager/LightsManager.as b/src/alternativa/tanks/lightsmanager/LightsManager.as index 02d3504..bbb2463 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 name_02: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.name_02[LIGHT_TYPE_AMBIENT] = new AmbientLightRegistry(param1); + this.name_02[LIGHT_TYPE_DIRECTIONAL] = new DirectionalLightRegistry(param1); + this.name_02[LIGHT_TYPE_OMNI] = new OmniLightRegistry(param1); + this.name_02[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.name_02[_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..441b9f1 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 name_9N:Sound; - private var §_-dF§:Sound; + private var name_dF:Sound; - private var §_-ik§:Sound; + private var name_ik:Sound; - private var §_-QG§:Sound; + private var name_QG:Sound; - private var §_-qB§:SoundChannel; + private var name_qB:SoundChannel; - private var §_-kx§:Boolean = false; + private var name_kx:Boolean = false; public function ChassisSoundCallback(param1:SoundsLibrary) { super(); - this.§_-9N§ = param1.getSound("startmoving"); - this.§_-dF§ = param1.getSound("endmoving"); - this.§_-ik§ = param1.getSound("move"); - this.§_-QG§ = param1.getSound("idle"); + this.name_9N = param1.getSound("startmoving"); + this.name_dF = param1.getSound("endmoving"); + this.name_ik = param1.getSound("move"); + this.name_QG = param1.getSound("idle"); this.idleLoop(); } public function onControlChanged(param1:int, param2:int, param3:Boolean) : void { var _loc4_:Boolean = param1 != 0 || param2 != 0; - if(_loc4_ && !this.§_-kx§) + if(_loc4_ && !this.name_kx) { - if(this.§_-qB§ != null) + if(this.name_qB != null) { - this.§_-qB§.stop(); + this.name_qB.stop(); } this.startMoving(); } - else if(!_loc4_ && this.§_-kx§) + else if(!_loc4_ && this.name_kx) { - if(this.§_-qB§ != null) + if(this.name_qB != null) { - this.§_-qB§.stop(); + this.name_qB.stop(); } this.stopMoving(); } - this.§_-kx§ = _loc4_; + this.name_kx = _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.name_qB.removeEventListener(Event.SOUND_COMPLETE,this.onStopMoveComplete); this.idleLoop(); } private function startMoving() : void { - if(this.§_-qB§ != null) + if(this.name_qB != null) { - this.§_-qB§.stop(); + this.name_qB.stop(); } - this.§_-qB§ = this.§_-9N§.play(); - this.§_-qB§.addEventListener(Event.SOUND_COMPLETE,this.onStartMoveComplete); + this.name_qB = this.name_9N.play(); + this.name_qB.addEventListener(Event.SOUND_COMPLETE,this.onStartMoveComplete); } private function onStartMoveComplete(param1:Event) : void { - this.§_-qB§.stop(); + this.name_qB.stop(); this.moveLoop(); } private function moveLoop() : void { - this.§_-qB§ = this.§_-ik§.play(0); - this.§_-qB§.addEventListener(Event.SOUND_COMPLETE,this.onMoveLoop); + this.name_qB = this.name_ik.play(0); + this.name_qB.addEventListener(Event.SOUND_COMPLETE,this.onMoveLoop); } private function onMoveLoop(param1:Event) : void { - this.§_-qB§.removeEventListener(Event.SOUND_COMPLETE,this.onMoveLoop); + this.name_qB.removeEventListener(Event.SOUND_COMPLETE,this.onMoveLoop); this.moveLoop(); } private function idleLoop() : void { - this.§_-qB§ = this.§_-QG§.play(0); - this.§_-qB§.addEventListener(Event.SOUND_COMPLETE,this.onIdleLoop); + this.name_qB = this.name_QG.play(0); + this.name_qB.addEventListener(Event.SOUND_COMPLETE,this.onIdleLoop); } private function onIdleLoop(param1:Event) : void { - this.§_-qB§.removeEventListener(Event.SOUND_COMPLETE,this.onIdleLoop); + this.name_qB.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..18a27fb 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 name_At:Sound; - private var §_-ha§:SoundChannel = null; + private var name_ha:SoundChannel = null; public function TurretSoundCallback(param1:SoundsLibrary) { super(); this.soundLibrary = param1; - this.§_-At§ = param1.getSound("turret"); + this.name_At = param1.getSound("turret"); } public function onTurretControlChanged(param1:int, param2:Boolean) : void { - if(this.§_-ha§ != null) + if(this.name_ha != null) { - this.§_-ha§.stop(); + this.name_ha.stop(); } if(param1 != 0) { @@ -36,18 +36,18 @@ package alternativa.tanks.sounds private function playMusic() : void { - if(this.§_-At§ != null) + if(this.name_At != null) { - this.§_-ha§ = this.§_-At§.play(0,0,new SoundTransform(0.2)); - this.§_-ha§.addEventListener(Event.SOUND_COMPLETE,this.loopMusic); + this.name_ha = this.name_At.play(0,0,new SoundTransform(0.2)); + this.name_ha.addEventListener(Event.SOUND_COMPLETE,this.loopMusic); } } private function loopMusic(param1:Event) : void { - if(this.§_-ha§ != null) + if(this.name_ha != null) { - this.§_-ha§.removeEventListener(Event.SOUND_COMPLETE,this.loopMusic); + this.name_ha.removeEventListener(Event.SOUND_COMPLETE,this.loopMusic); this.playMusic(); } } diff --git a/src/alternativa/tanks/utils/TARAParser.as b/src/alternativa/tanks/utils/TARAParser.as index 54e2498..6bb9e28 100644 --- a/src/alternativa/tanks/utils/TARAParser.as +++ b/src/alternativa/tanks/utils/TARAParser.as @@ -4,7 +4,7 @@ package alternativa.tanks.utils public class TARAParser { - private var §_-Bp§:Object; + private var name_Bp:Object; public function TARAParser(param1:ByteArray) { @@ -28,30 +28,30 @@ package alternativa.tanks.utils _loc3_[_loc4_] = new FileInfo(param1.readUTF(),param1.readInt()); _loc4_++; } - this.§_-Bp§ = {}; + this.name_Bp = {}; _loc4_ = 0; while(_loc4_ < _loc2_) { _loc5_ = new ByteArray(); _loc6_ = _loc3_[_loc4_]; param1.readBytes(_loc5_,0,_loc6_.size); - this.§_-Bp§[_loc6_.name] = _loc5_; + this.name_Bp[_loc6_.name] = _loc5_; _loc4_++; } } public function get data() : Object { - return this.§_-Bp§; + return this.name_Bp; } public function getFileData(param1:String) : ByteArray { - if(this.§_-Bp§ == null) + if(this.name_Bp == null) { return null; } - return ByteArray(this.§_-Bp§[param1]); + return ByteArray(this.name_Bp[param1]); } } } diff --git a/src/alternativa/tanks/utils/Task.as b/src/alternativa/tanks/utils/Task.as index d92e3c0..1a1f485 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 name_UZ:TaskSequence; public function Task() { @@ -18,13 +18,13 @@ package alternativa.tanks.utils internal function set taskSequence(param1:TaskSequence) : void { - this.§_-UZ§ = param1; + this.name_UZ = param1; } final protected function completeTask() : void { dispatchEvent(new TaskEvent(TaskEvent.TASK_COMPLETE,1,1)); - this.§_-UZ§.taskComplete(this); + this.name_UZ.taskComplete(this); } } } diff --git a/src/alternativa/tanks/utils/TaskSequence.as b/src/alternativa/tanks/utils/TaskSequence.as index c48192e..610a484 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 name_LN:int; public function TaskSequence() { @@ -33,7 +33,7 @@ package alternativa.tanks.utils { if(this.tasks.length > 0) { - this.§_-LN§ = 0; + this.name_LN = 0; this.runCurrentTask(); } else @@ -44,13 +44,13 @@ package alternativa.tanks.utils private function runCurrentTask() : void { - this.tasks[this.§_-LN§].run(); + this.tasks[this.name_LN].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.name_LN < this.tasks.length) { this.runCurrentTask(); } diff --git a/src/alternativa/types/Long.as b/src/alternativa/types/Long.as index 19a5f4b..3529762 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 name_Ec:int; - private var §_-Ti§:int; + private var name_Ti:int; public function Long(high:int, low:int) { super(); - this.§_-Ti§ = high; - this.§_-Ec§ = low; + this.name_Ti = high; + this.name_Ec = 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.name_Ec; } public function get high() : int { - return this.§_-Ti§; + return this.name_Ti; } public function toString() : String { - return this.intToUhex(this.§_-Ti§) + this.intToUhex(this.§_-Ec§); + return this.intToUhex(this.name_Ti) + this.intToUhex(this.name_Ec); } 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.name_Ti); + result.writeInt(this.name_Ec); result.position = 0; return result; } diff --git a/src/alternativa/utils/ByteArrayMap.as b/src/alternativa/utils/ByteArrayMap.as index 0de4585..0e4ec0a 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 name_Bp:Object; public function ByteArrayMap(data:Object = null) { super(); - this.§_-Bp§ = data == null ? {} : data; + this.name_Bp = data == null ? {} : data; } public function get data() : Object { - return this.§_-Bp§; + return this.name_Bp; } public function getValue(key:String) : ByteArray { - return this.§_-Bp§[key]; + return this.name_Bp[key]; } public function putValue(key:String, value:ByteArray) : void { - this.§_-Bp§[key] = value; + this.name_Bp[key] = value; } } } diff --git a/src/alternativa/utils/CircularStringBuffer.as b/src/alternativa/utils/CircularStringBuffer.as index a8e1e70..d6e63b0 100644 --- a/src/alternativa/utils/CircularStringBuffer.as +++ b/src/alternativa/utils/CircularStringBuffer.as @@ -4,33 +4,33 @@ package alternativa.utils { public var strings:Vector.; - public var §_-Uh§:int; + public var name_Uh:int; - public var §_-1A§:int; + public var name_1A:int; - private var §_-9W§:int; + private var name_9W:int; public function CircularStringBuffer(capacity:int) { super(); - this.§_-9W§ = capacity; - this.strings = new Vector.(this.§_-9W§ + 1); + this.name_9W = capacity; + this.strings = new Vector.(this.name_9W + 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.name_1A] = s; + this.name_1A = this.incIndex(this.name_1A); + if(this.name_1A == this.name_Uh) { - this.§_-Uh§ = this.incIndex(this.§_-Uh§); + this.name_Uh = this.incIndex(this.name_Uh); } } public function clear() : void { - this.§_-Uh§ = 0; - this.§_-1A§ = 0; + this.name_Uh = 0; + this.name_1A = 0; var len:int = int(this.strings.length); for(var i:int = 0; i < len; i++) { @@ -40,7 +40,7 @@ package alternativa.utils public function get size() : int { - var result:int = this.§_-1A§ - this.§_-Uh§; + var result:int = this.name_1A - this.name_Uh; if(result < 0) { result += this.strings.length; @@ -50,13 +50,13 @@ package alternativa.utils public function get capacity() : int { - return this.§_-9W§; + return this.name_9W; } public function getStrings() : Vector. { var result:Vector. = new Vector.(); - for(var i:int = this.§_-Uh§; i != this.§_-1A§; i = this.incIndex(i)) + for(var i:int = this.name_Uh; i != this.name_1A; i = this.incIndex(i)) { result.push(this.strings[i]); } @@ -80,6 +80,9 @@ package alternativa.utils } } +import alternativa.utils.IStringBufferIterator; +import alternativa.utils.CircularStringBuffer; + class Iterator implements IStringBufferIterator { private var buffer:CircularStringBuffer; @@ -95,7 +98,7 @@ class Iterator implements IStringBufferIterator } this.buffer = buffer; var bufferLength:uint = uint(buffer.strings.length); - this.index = buffer.§_-Uh§ + startIndex - 1; + this.index = buffer.name_Uh + startIndex - 1; if(this.index < 0) { this.index = bufferLength - 1; @@ -108,13 +111,13 @@ class Iterator implements IStringBufferIterator public function hasNext() : Boolean { - return this.incIndex(this.index) != this.buffer.§_-1A§; + return this.incIndex(this.index) != this.buffer.name_1A; } public function getNext() : String { this.index = this.incIndex(this.index); - if(this.index == this.buffer.§_-1A§) + if(this.index == this.buffer.name_1A) { throw new Error("End of buffer"); } diff --git a/src/commons/A3DMatrix.as b/src/commons/A3DMatrix.as index 9264c72..7786e17 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 name_Cw:Number; - private var §_-gS§:Number; + private var name_gS:Number; - private var §_-ne§:Number; + private var name_ne:Number; - private var §_-72§:Number; + private var name_72:Number; - private var §_-mV§:Number; + private var name_mV:Number; private var _f:Number; - private var §_-eD§:Number; + private var name_eD:Number; - private var §_-ih§:Number; + private var name_ih:Number; - private var §_-Lu§:Number; + private var name_Lu:Number; - private var §_-cJ§:Number; + private var name_cJ:Number; - private var §_-SO§:Number; + private var name_SO:Number; - private var §_-UI§:Number; + private var name_UI: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.name_Cw = a; + this.name_gS = b; + this.name_ne = c; + this.name_72 = d; + this.name_mV = e; this._f = f; - this.§_-eD§ = g; - this.§_-ih§ = h; - this.§_-Lu§ = i; - this.§_-cJ§ = j; - this.§_-SO§ = k; - this.§_-UI§ = l; + this.name_eD = g; + this.name_ih = h; + this.name_Lu = i; + this.name_cJ = j; + this.name_SO = k; + this.name_UI = l; } public function get a() : Number { - return this.§_-Cw§; + return this.name_Cw; } public function set a(value:Number) : void { - this.§_-Cw§ = value; + this.name_Cw = value; } public function get b() : Number { - return this.§_-gS§; + return this.name_gS; } public function set b(value:Number) : void { - this.§_-gS§ = value; + this.name_gS = value; } public function get c() : Number { - return this.§_-ne§; + return this.name_ne; } public function set c(value:Number) : void { - this.§_-ne§ = value; + this.name_ne = value; } public function get d() : Number { - return this.§_-72§; + return this.name_72; } public function set d(value:Number) : void { - this.§_-72§ = value; + this.name_72 = value; } public function get e() : Number { - return this.§_-mV§; + return this.name_mV; } public function set e(value:Number) : void { - this.§_-mV§ = value; + this.name_mV = value; } public function get f() : Number @@ -105,62 +105,62 @@ package commons public function get g() : Number { - return this.§_-eD§; + return this.name_eD; } public function set g(value:Number) : void { - this.§_-eD§ = value; + this.name_eD = value; } public function get h() : Number { - return this.§_-ih§; + return this.name_ih; } public function set h(value:Number) : void { - this.§_-ih§ = value; + this.name_ih = value; } public function get i() : Number { - return this.§_-Lu§; + return this.name_Lu; } public function set i(value:Number) : void { - this.§_-Lu§ = value; + this.name_Lu = value; } public function get j() : Number { - return this.§_-cJ§; + return this.name_cJ; } public function set j(value:Number) : void { - this.§_-cJ§ = value; + this.name_cJ = value; } public function get k() : Number { - return this.§_-SO§; + return this.name_SO; } public function set k(value:Number) : void { - this.§_-SO§ = value; + this.name_SO = value; } public function get l() : Number { - return this.§_-UI§; + return this.name_UI; } public function set l(value:Number) : void { - this.§_-UI§ = value; + this.name_UI = value; } public function toString() : String diff --git a/src/commons/Id.as b/src/commons/Id.as index f87d29b..b4f9ad3 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 name_3I:uint; public function Id(id:uint) { super(); - this.§_-3I§ = id; + this.name_3I = id; } public function get id() : uint { - return this.§_-3I§; + return this.name_3I; } public function set id(value:uint) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function toString() : String diff --git a/src/tankshudDemo/TanksHudDemo.as b/src/tankshudDemo/TanksHudDemo.as index c2466ae..f457b04 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 name_d0:Bitmap; - private var §_-7U§:Bitmap; + private var name_7U:Bitmap; - private var §_-4m§:Bitmap; + private var name_4m:Bitmap; private var fullScreenButtonState1:Bitmap; @@ -41,11 +41,11 @@ package tankshudDemo private var nextTankButtonState2:Bitmap; - private var §_-at§:Sprite; + private var name_at:Sprite; - private var §_-I5§:Sprite; + private var name_I5:Sprite; - private var §_-kn§:Boolean; + private var name_kn: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.name_d0 = new topLeftIconClass(); + addChild(this.name_d0); + this.name_7U = new topRightIconClass(); + addChild(this.name_7U); + this.name_4m = new bottomLeftIconClass(); + addChild(this.name_4m); + this.name_at = new Sprite(); + this.name_at.mouseChildren = false; + addChild(this.name_at); this.fullScreenButtonState1 = new fullScreenState1Class(); - this.§_-at§.addChild(this.fullScreenButtonState1); + this.name_at.addChild(this.fullScreenButtonState1); this.fullScreenButtonState2 = new fullScreenState2Class(); - this.§_-at§.addChild(this.fullScreenButtonState2); - this.§_-at§.addEventListener(MouseEvent.ROLL_OVER,this.onOverFullScreenBtn); - this.§_-at§.addEventListener(MouseEvent.ROLL_OUT,this.onOutFullScreenBtn); - this.§_-at§.addEventListener(MouseEvent.CLICK,this.onClickFullScreenBtn); + this.name_at.addChild(this.fullScreenButtonState2); + this.name_at.addEventListener(MouseEvent.ROLL_OVER,this.onOverFullScreenBtn); + this.name_at.addEventListener(MouseEvent.ROLL_OUT,this.onOutFullScreenBtn); + this.name_at.addEventListener(MouseEvent.CLICK,this.onClickFullScreenBtn); this.isFullScreen = false; - this.§_-I5§ = new Sprite(); - this.§_-I5§.mouseChildren = false; - addChild(this.§_-I5§); + this.name_I5 = new Sprite(); + this.name_I5.mouseChildren = false; + addChild(this.name_I5); this.nextTankButtonState1 = new nextTankState1Class(); - this.§_-I5§.addChild(this.nextTankButtonState1); + this.name_I5.addChild(this.nextTankButtonState1); this.nextTankButtonState2 = new nextTankState2Class(); - this.§_-I5§.addChild(this.nextTankButtonState2); + this.name_I5.addChild(this.nextTankButtonState2); this.nextTankButtonState2.visible = false; - this.§_-I5§.addEventListener(MouseEvent.ROLL_OVER,this.onOverNextTankBtn); - this.§_-I5§.addEventListener(MouseEvent.ROLL_OUT,this.onOutNextTankBtn); - this.§_-I5§.addEventListener(MouseEvent.CLICK,this.onClickNextTankBtn); + this.name_I5.addEventListener(MouseEvent.ROLL_OVER,this.onOverNextTankBtn); + this.name_I5.addEventListener(MouseEvent.ROLL_OUT,this.onOutNextTankBtn); + this.name_I5.addEventListener(MouseEvent.CLICK,this.onClickNextTankBtn); } public function destroy() : void { - if(this.§_-d0§ != null) + if(this.name_d0 != null) { - removeChild(this.§_-d0§); + removeChild(this.name_d0); } - if(this.§_-7U§ != null) + if(this.name_7U != null) { - removeChild(this.§_-7U§); + removeChild(this.name_7U); } - if(this.§_-4m§ != null) + if(this.name_4m != null) { - removeChild(this.§_-4m§); + removeChild(this.name_4m); } - if(this.§_-at§ != null) + if(this.name_at != null) { - this.§_-at§.removeEventListener(MouseEvent.ROLL_OVER,this.onOverFullScreenBtn); - this.§_-at§.removeEventListener(MouseEvent.ROLL_OUT,this.onOutFullScreenBtn); - this.§_-at§.removeEventListener(MouseEvent.CLICK,this.onClickFullScreenBtn); - removeChild(this.§_-at§); + this.name_at.removeEventListener(MouseEvent.ROLL_OVER,this.onOverFullScreenBtn); + this.name_at.removeEventListener(MouseEvent.ROLL_OUT,this.onOutFullScreenBtn); + this.name_at.removeEventListener(MouseEvent.CLICK,this.onClickFullScreenBtn); + removeChild(this.name_at); } - if(this.§_-I5§ != null) + if(this.name_I5 != null) { - this.§_-I5§.removeEventListener(MouseEvent.ROLL_OVER,this.onOverNextTankBtn); - this.§_-I5§.removeEventListener(MouseEvent.ROLL_OUT,this.onOutNextTankBtn); - this.§_-I5§.removeEventListener(MouseEvent.CLICK,this.onClickNextTankBtn); - removeChild(this.§_-I5§); + this.name_I5.removeEventListener(MouseEvent.ROLL_OVER,this.onOverNextTankBtn); + this.name_I5.removeEventListener(MouseEvent.ROLL_OUT,this.onOutNextTankBtn); + this.name_I5.removeEventListener(MouseEvent.CLICK,this.onClickNextTankBtn); + removeChild(this.name_I5); } - this.§_-d0§ = null; - this.§_-7U§ = null; - this.§_-4m§ = null; - this.§_-at§ = null; - this.§_-I5§ = null; + this.name_d0 = null; + this.name_7U = null; + this.name_4m = null; + this.name_at = null; + this.name_I5 = null; } public function resize(param1:Number, param2:Number) : void { - if(this.§_-7U§ != null) + if(this.name_7U != null) { - this.§_-7U§.x = param1 - this.§_-7U§.width; + this.name_7U.x = param1 - this.name_7U.width; } - if(this.§_-4m§ != null) + if(this.name_4m != null) { - this.§_-4m§.y = param2 - this.§_-4m§.height; + this.name_4m.y = param2 - this.name_4m.height; } - if(this.§_-at§ != null) + if(this.name_at != null) { - this.§_-at§.x = param1 - this.§_-at§.width - GAP_RIGHT; - this.§_-at§.y = param2 - this.§_-at§.height - GAP_BOTTOM; + this.name_at.x = param1 - this.name_at.width - GAP_RIGHT; + this.name_at.y = param2 - this.name_at.height - GAP_BOTTOM; } - if(this.§_-I5§ != null) + if(this.name_I5 != null) { - this.§_-I5§.x = param1 - this.§_-at§.width - this.§_-I5§.width - GAP_BEEWEN_BUTTON - GAP_RIGHT; - this.§_-I5§.y = param2 - this.§_-I5§.height - GAP_BOTTOM; + this.name_I5.x = param1 - this.name_at.width - this.name_I5.width - GAP_BEEWEN_BUTTON - GAP_RIGHT; + this.name_I5.y = param2 - this.name_I5.height - GAP_BOTTOM; } } public function get isFullScreen() : Boolean { - return this.§_-kn§; + return this.name_kn; } public function set isFullScreen(param1:Boolean) : void { - this.§_-kn§ = param1; - if(this.§_-kn§ == false) + this.name_kn = param1; + if(this.name_kn == false) { this.fullScreenButtonState2.visible = false; } @@ -165,7 +165,7 @@ package tankshudDemo private function onOverFullScreenBtn(param1:MouseEvent) : void { - if(this.§_-kn§ == false) + if(this.name_kn == false) { this.fullScreenButtonState2.visible = true; } @@ -173,7 +173,7 @@ package tankshudDemo private function onOutFullScreenBtn(param1:MouseEvent) : void { - if(this.§_-kn§ == false) + if(this.name_kn == false) { this.fullScreenButtonState2.visible = false; } @@ -181,7 +181,7 @@ package tankshudDemo private function onClickFullScreenBtn(param1:MouseEvent) : void { - this.isFullScreen = !this.§_-kn§; + this.isFullScreen = !this.name_kn; 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..3c3ff8e 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 name_0:Vector.; private var OptionalMap:Vector.; - private var §_-ce§:Vector.; + private var name_ce:Vector.; - private var §_-XJ§:Vector.; + private var name_XJ:Vector.; - private var §_-22§:Vector.; + private var name_22:Vector.; - private var §_-Kq§:Vector.; + private var name_Kq:Vector.; public function A3D(boxes:Vector., geometries:Vector., images:Vector., maps:Vector., materials:Vector., objects:Vector.) { super(); - this.§_-0§ = boxes; + this.name_0 = boxes; this.OptionalMap = geometries; - this.§_-ce§ = images; - this.§_-XJ§ = maps; - this.§_-22§ = materials; - this.§_-Kq§ = objects; + this.name_ce = images; + this.name_XJ = maps; + this.name_22 = materials; + this.name_Kq = objects; } public function get boxes() : Vector. { - return this.§_-0§; + return this.name_0; } public function set boxes(value:Vector.) : void { - this.§_-0§ = value; + this.name_0 = value; } public function get geometries() : Vector. @@ -54,42 +54,42 @@ package versions.version1.a3d public function get images() : Vector. { - return this.§_-ce§; + return this.name_ce; } public function set images(value:Vector.) : void { - this.§_-ce§ = value; + this.name_ce = value; } public function get maps() : Vector. { - return this.§_-XJ§; + return this.name_XJ; } public function set maps(value:Vector.) : void { - this.§_-XJ§ = value; + this.name_XJ = value; } public function get materials() : Vector. { - return this.§_-22§; + return this.name_22; } public function set materials(value:Vector.) : void { - this.§_-22§ = value; + this.name_22 = value; } public function get objects() : Vector. { - return this.§_-Kq§; + return this.name_Kq; } public function set objects(value:Vector.) : void { - this.§_-Kq§ = value; + this.name_Kq = 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..c674462 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 name_3I:Id; - private var §_-EM§:A3DIndexBuffer; + private var name_EM:A3DIndexBuffer; - private var §_-0B§:Vector.; + private var name_0B:Vector.; public function A3DGeometry(id:Id, indexBuffer:A3DIndexBuffer, vertexBuffers:Vector.) { super(); - this.§_-3I§ = id; - this.§_-EM§ = indexBuffer; - this.§_-0B§ = vertexBuffers; + this.name_3I = id; + this.name_EM = indexBuffer; + this.name_0B = vertexBuffers; } public function get id() : Id { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get indexBuffer() : A3DIndexBuffer { - return this.§_-EM§; + return this.name_EM; } public function set indexBuffer(value:A3DIndexBuffer) : void { - this.§_-EM§ = value; + this.name_EM = value; } public function get vertexBuffers() : Vector. { - return this.§_-0B§; + return this.name_0B; } public function set vertexBuffers(value:Vector.) : void { - this.§_-0B§ = value; + this.name_0B = 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..c20c363 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 name_79:ByteArray; - private var §_-m0§:int; + private var name_m0:int; public function A3DIndexBuffer(byteBuffer:ByteArray, indexCount:int) { super(); - this.§_-79§ = byteBuffer; - this.§_-m0§ = indexCount; + this.name_79 = byteBuffer; + this.name_m0 = indexCount; } public function get byteBuffer() : ByteArray { - return this.§_-79§; + return this.name_79; } public function set byteBuffer(value:ByteArray) : void { - this.§_-79§ = value; + this.name_79 = value; } public function get indexCount() : int { - return this.§_-m0§; + return this.name_m0; } public function set indexCount(value:int) : void { - this.§_-m0§ = value; + this.name_m0 = 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..467f117 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 name_96:Vector.; - private var §_-79§:ByteArray; + private var name_79:ByteArray; - private var §_-g1§:uint; + private var name_g1:uint; public function A3DVertexBuffer(attributes:Vector., byteBuffer:ByteArray, vertexCount:uint) { super(); - this.§_-96§ = attributes; - this.§_-79§ = byteBuffer; - this.§_-g1§ = vertexCount; + this.name_96 = attributes; + this.name_79 = byteBuffer; + this.name_g1 = vertexCount; } public function get attributes() : Vector. { - return this.§_-96§; + return this.name_96; } public function set attributes(value:Vector.) : void { - this.§_-96§ = value; + this.name_96 = value; } public function get byteBuffer() : ByteArray { - return this.§_-79§; + return this.name_79; } public function set byteBuffer(value:ByteArray) : void { - this.§_-79§ = value; + this.name_79 = value; } public function get vertexCount() : uint { - return this.§_-g1§; + return this.name_g1; } public function set vertexCount(value:uint) : void { - this.§_-g1§ = value; + this.name_g1 = 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..9d3f188 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 name_3I:uint; public function ParentId(id:uint) { super(); - this.§_-3I§ = id; + this.name_3I = id; } public function get id() : uint { - return this.§_-3I§; + return this.name_3I; } public function set id(value:uint) : void { - this.§_-3I§ = value; + this.name_3I = 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..c906a43 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 name_3I:Id; - private var §_-6D§:String; + private var name_6D:String; public function A3DImage(id:Id, url:String) { super(); - this.§_-3I§ = id; - this.§_-6D§ = url; + this.name_3I = id; + this.name_6D = url; } public function get id() : Id { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get url() : String { - return this.§_-6D§; + return this.name_6D; } public function set url(value:String) : void { - this.§_-6D§ = value; + this.name_6D = 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..8492ecf 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 name_9y:uint; - private var §_-3I§:Id; + private var name_3I:Id; - private var §_-JE§:Id; + private var name_JE:Id; - private var §_-0U§:Number; + private var name_0U:Number; - private var §_-5k§:Number; + private var name_5k:Number; - private var §_-JZ§:Number; + private var name_JZ:Number; - private var §_-XP§:Number; + private var name_XP: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.name_9y = channel; + this.name_3I = id; + this.name_JE = imageId; + this.name_0U = uOffset; + this.name_5k = uScale; + this.name_JZ = vOffset; + this.name_XP = vScale; } public function get channel() : uint { - return this.§_-9y§; + return this.name_9y; } public function set channel(value:uint) : void { - this.§_-9y§ = value; + this.name_9y = value; } public function get id() : Id { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get imageId() : Id { - return this.§_-JE§; + return this.name_JE; } public function set imageId(value:Id) : void { - this.§_-JE§ = value; + this.name_JE = value; } public function get uOffset() : Number { - return this.§_-0U§; + return this.name_0U; } public function set uOffset(value:Number) : void { - this.§_-0U§ = value; + this.name_0U = value; } public function get uScale() : Number { - return this.§_-5k§; + return this.name_5k; } public function set uScale(value:Number) : void { - this.§_-5k§ = value; + this.name_5k = value; } public function get vOffset() : Number { - return this.§_-JZ§; + return this.name_JZ; } public function set vOffset(value:Number) : void { - this.§_-JZ§ = value; + this.name_JZ = value; } public function get vScale() : Number { - return this.§_-XP§; + return this.name_XP; } public function set vScale(value:Number) : void { - this.§_-XP§ = value; + this.name_XP = 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..e8b356e 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 name_9s:Id; - private var §_-bl§:Id; + private var name_bl:Id; - private var §_-3I§:Id; + private var name_3I:Id; - private var §_-qf§:Id; + private var name_qf:Id; - private var §_-QR§:Id; + private var name_QR:Id; - private var §_-Jn§:Id; + private var name_Jn:Id; - private var §_-LA§:Id; + private var name_LA:Id; public function A3DMaterial(diffuseMapId:Id, glossinessMapId:Id, id:Id, lightMapId:Id, normalMapId:Id, opacityMapId:Id, specularMapId:Id) { super(); - this.§_-9s§ = diffuseMapId; - this.§_-bl§ = glossinessMapId; - this.§_-3I§ = id; - this.§_-qf§ = lightMapId; - this.§_-QR§ = normalMapId; - this.§_-Jn§ = opacityMapId; - this.§_-LA§ = specularMapId; + this.name_9s = diffuseMapId; + this.name_bl = glossinessMapId; + this.name_3I = id; + this.name_qf = lightMapId; + this.name_QR = normalMapId; + this.name_Jn = opacityMapId; + this.name_LA = specularMapId; } public function get diffuseMapId() : Id { - return this.§_-9s§; + return this.name_9s; } public function set diffuseMapId(value:Id) : void { - this.§_-9s§ = value; + this.name_9s = value; } public function get glossinessMapId() : Id { - return this.§_-bl§; + return this.name_bl; } public function set glossinessMapId(value:Id) : void { - this.§_-bl§ = value; + this.name_bl = value; } public function get id() : Id { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get lightMapId() : Id { - return this.§_-qf§; + return this.name_qf; } public function set lightMapId(value:Id) : void { - this.§_-qf§ = value; + this.name_qf = value; } public function get normalMapId() : Id { - return this.§_-QR§; + return this.name_QR; } public function set normalMapId(value:Id) : void { - this.§_-QR§ = value; + this.name_QR = value; } public function get opacityMapId() : Id { - return this.§_-Jn§; + return this.name_Jn; } public function set opacityMapId(value:Id) : void { - this.§_-Jn§ = value; + this.name_Jn = value; } public function get specularMapId() : Id { - return this.§_-LA§; + return this.name_LA; } public function set specularMapId(value:Id) : void { - this.§_-LA§ = value; + this.name_LA = 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..f1fa66c 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 name_Ge:Vector.; - private var §_-3I§:Id; + private var name_3I:Id; public function A3DBox(box:Vector., id:Id) { super(); - this.§_-Ge§ = box; - this.§_-3I§ = id; + this.name_Ge = box; + this.name_3I = id; } public function get box() : Vector. { - return this.§_-Ge§; + return this.name_Ge; } public function set box(value:Vector.) : void { - this.§_-Ge§ = value; + this.name_Ge = value; } public function get id() : Id { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.name_3I = 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..3f6fe22 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 name_jD:Id; - private var §_-16§:Id; + private var name_16:Id; - private var §_-3I§:Id; + private var name_3I:Id; private var _name:String; - private var §_-fP§:ParentId; + private var name_fP:ParentId; - private var §_-eW§:Vector.; + private var name_eW:Vector.; - private var §_-UJ§:A3DTransformation; + private var name_UJ:A3DTransformation; - private var §_-1u§:Boolean; + private var name_1u:Boolean; public function A3DObject(boundBoxId:Id, geometryId:Id, id:Id, name:String, parentId:ParentId, surfaces:Vector., transformation:A3DTransformation, visible:Boolean) { super(); - this.§_-jD§ = boundBoxId; - this.§_-16§ = geometryId; - this.§_-3I§ = id; + this.name_jD = boundBoxId; + this.name_16 = geometryId; + this.name_3I = id; this._name = name; - this.§_-fP§ = parentId; - this.§_-eW§ = surfaces; - this.§_-UJ§ = transformation; - this.§_-1u§ = visible; + this.name_fP = parentId; + this.name_eW = surfaces; + this.name_UJ = transformation; + this.name_1u = visible; } public function get boundBoxId() : Id { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:Id) : void { - this.§_-jD§ = value; + this.name_jD = value; } public function get geometryId() : Id { - return this.§_-16§; + return this.name_16; } public function set geometryId(value:Id) : void { - this.§_-16§ = value; + this.name_16 = value; } public function get id() : Id { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Id) : void { - this.§_-3I§ = value; + this.name_3I = 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.name_fP; } public function set parentId(value:ParentId) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get surfaces() : Vector. { - return this.§_-eW§; + return this.name_eW; } public function set surfaces(value:Vector.) : void { - this.§_-eW§ = value; + this.name_eW = value; } public function get transformation() : A3DTransformation { - return this.§_-UJ§; + return this.name_UJ; } public function set transformation(value:A3DTransformation) : void { - this.§_-UJ§ = value; + this.name_UJ = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = 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..50d716a 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 name_50:int; - private var §_-pS§:Id; + private var name_pS:Id; - private var §_-4C§:int; + private var name_4C:int; public function A3DSurface(indexBegin:int, materialId:Id, numTriangles:int) { super(); - this.§_-50§ = indexBegin; - this.§_-pS§ = materialId; - this.§_-4C§ = numTriangles; + this.name_50 = indexBegin; + this.name_pS = materialId; + this.name_4C = numTriangles; } public function get indexBegin() : int { - return this.§_-50§; + return this.name_50; } public function set indexBegin(value:int) : void { - this.§_-50§ = value; + this.name_50 = value; } public function get materialId() : Id { - return this.§_-pS§; + return this.name_pS; } public function set materialId(value:Id) : void { - this.§_-pS§ = value; + this.name_pS = value; } public function get numTriangles() : int { - return this.§_-4C§; + return this.name_4C; } public function set numTriangles(value:int) : void { - this.§_-4C§ = value; + this.name_4C = 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..15e93d3 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 name_6p:A3DMatrix; public function A3DTransformation(matrix:A3DMatrix) { super(); - this.§_-6p§ = matrix; + this.name_6p = matrix; } public function get matrix() : A3DMatrix { - return this.§_-6p§; + return this.name_6p; } public function set matrix(value:A3DMatrix) : void { - this.§_-6p§ = value; + this.name_6p = value; } public function toString() : String diff --git a/src/versions/version2/a3d/A3D2.as b/src/versions/version2/a3d/A3D2.as index 1e1ef59..125c4a3 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 name_VP:Vector.; - private var §_-qp§:Vector.; + private var name_qp:Vector.; - private var §_-Ib§:Vector.; + private var name_Ib:Vector.; - private var §_-0§:Vector.; + private var name_0:Vector.; - private var §_-fK§:Vector.; + private var name_fK:Vector.; - private var §_-Gv§:Vector.; + private var name_Gv:Vector.; - private var §_-93§:Vector.; + private var name_93:Vector.; - private var §_-ce§:Vector.; + private var name_ce:Vector.; - private var §_-jm§:Vector.; + private var name_jm:Vector.; - private var §_-26§:Vector.; + private var name_26:Vector.; - private var §_-XJ§:Vector.; + private var name_XJ:Vector.; - private var §_-22§:Vector.; + private var name_22:Vector.; - private var §_-jz§:Vector.; + private var name_jz:Vector.; - private var §_-Kq§:Vector.; + private var name_Kq:Vector.; - private var §_-fM§:Vector.; + private var name_fM:Vector.; - private var §_-G0§:Vector.; + private var name_G0:Vector.; - private var §_-pd§:Vector.; + private var name_pd:Vector.; - private var §_-Ke§:Vector.; + private var name_Ke:Vector.; - private var §_-0B§:Vector.; + private var name_0B:Vector.; public function A3D2(ambientLights:Vector., animationClips:Vector., animationTracks:Vector., boxes:Vector., cubeMaps:Vector., decals:Vector., directionalLights:Vector., images:Vector., indexBuffers:Vector., joints:Vector., maps:Vector., materials:Vector., meshes:Vector., objects:Vector., omniLights:Vector., skins:Vector., spotLights:Vector., sprites:Vector., vertexBuffers:Vector.) { super(); - this.§_-VP§ = ambientLights; - this.§_-qp§ = animationClips; - this.§_-Ib§ = animationTracks; - this.§_-0§ = boxes; - this.§_-fK§ = cubeMaps; - this.§_-Gv§ = decals; - this.§_-93§ = directionalLights; - this.§_-ce§ = images; - this.§_-jm§ = indexBuffers; - this.§_-26§ = joints; - this.§_-XJ§ = maps; - this.§_-22§ = materials; - this.§_-jz§ = meshes; - this.§_-Kq§ = objects; - this.§_-fM§ = omniLights; - this.§_-G0§ = skins; - this.§_-pd§ = spotLights; - this.§_-Ke§ = sprites; - this.§_-0B§ = vertexBuffers; + this.name_VP = ambientLights; + this.name_qp = animationClips; + this.name_Ib = animationTracks; + this.name_0 = boxes; + this.name_fK = cubeMaps; + this.name_Gv = decals; + this.name_93 = directionalLights; + this.name_ce = images; + this.name_jm = indexBuffers; + this.name_26 = joints; + this.name_XJ = maps; + this.name_22 = materials; + this.name_jz = meshes; + this.name_Kq = objects; + this.name_fM = omniLights; + this.name_G0 = skins; + this.name_pd = spotLights; + this.name_Ke = sprites; + this.name_0B = vertexBuffers; } public function get ambientLights() : Vector. { - return this.§_-VP§; + return this.name_VP; } public function set ambientLights(value:Vector.) : void { - this.§_-VP§ = value; + this.name_VP = value; } public function get animationClips() : Vector. { - return this.§_-qp§; + return this.name_qp; } public function set animationClips(value:Vector.) : void { - this.§_-qp§ = value; + this.name_qp = value; } public function get animationTracks() : Vector. { - return this.§_-Ib§; + return this.name_Ib; } public function set animationTracks(value:Vector.) : void { - this.§_-Ib§ = value; + this.name_Ib = value; } public function get boxes() : Vector. { - return this.§_-0§; + return this.name_0; } public function set boxes(value:Vector.) : void { - this.§_-0§ = value; + this.name_0 = value; } public function get cubeMaps() : Vector. { - return this.§_-fK§; + return this.name_fK; } public function set cubeMaps(value:Vector.) : void { - this.§_-fK§ = value; + this.name_fK = value; } public function get decals() : Vector. { - return this.§_-Gv§; + return this.name_Gv; } public function set decals(value:Vector.) : void { - this.§_-Gv§ = value; + this.name_Gv = value; } public function get directionalLights() : Vector. { - return this.§_-93§; + return this.name_93; } public function set directionalLights(value:Vector.) : void { - this.§_-93§ = value; + this.name_93 = value; } public function get images() : Vector. { - return this.§_-ce§; + return this.name_ce; } public function set images(value:Vector.) : void { - this.§_-ce§ = value; + this.name_ce = value; } public function get indexBuffers() : Vector. { - return this.§_-jm§; + return this.name_jm; } public function set indexBuffers(value:Vector.) : void { - this.§_-jm§ = value; + this.name_jm = value; } public function get joints() : Vector. { - return this.§_-26§; + return this.name_26; } public function set joints(value:Vector.) : void { - this.§_-26§ = value; + this.name_26 = value; } public function get maps() : Vector. { - return this.§_-XJ§; + return this.name_XJ; } public function set maps(value:Vector.) : void { - this.§_-XJ§ = value; + this.name_XJ = value; } public function get materials() : Vector. { - return this.§_-22§; + return this.name_22; } public function set materials(value:Vector.) : void { - this.§_-22§ = value; + this.name_22 = value; } public function get meshes() : Vector. { - return this.§_-jz§; + return this.name_jz; } public function set meshes(value:Vector.) : void { - this.§_-jz§ = value; + this.name_jz = value; } public function get objects() : Vector. { - return this.§_-Kq§; + return this.name_Kq; } public function set objects(value:Vector.) : void { - this.§_-Kq§ = value; + this.name_Kq = value; } public function get omniLights() : Vector. { - return this.§_-fM§; + return this.name_fM; } public function set omniLights(value:Vector.) : void { - this.§_-fM§ = value; + this.name_fM = value; } public function get skins() : Vector. { - return this.§_-G0§; + return this.name_G0; } public function set skins(value:Vector.) : void { - this.§_-G0§ = value; + this.name_G0 = value; } public function get spotLights() : Vector. { - return this.§_-pd§; + return this.name_pd; } public function set spotLights(value:Vector.) : void { - this.§_-pd§ = value; + this.name_pd = value; } public function get sprites() : Vector. { - return this.§_-Ke§; + return this.name_Ke; } public function set sprites(value:Vector.) : void { - this.§_-Ke§ = value; + this.name_Ke = value; } public function get vertexBuffers() : Vector. { - return this.§_-0B§; + return this.name_0B; } public function set vertexBuffers(value:Vector.) : void { - this.§_-0B§ = value; + this.name_0B = 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..e87009b 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 name_3I:int; - private var §_-OV§:Boolean; + private var name_OV:Boolean; private var _name:String; - private var §_-Cp§:Vector.; + private var name_Cp:Vector.; - private var §_-cT§:Vector.; + private var name_cT:Vector.; public function A3D2AnimationClip(id:int, loop:Boolean, name:String, objectIDs:Vector., tracks:Vector.) { super(); - this.§_-3I§ = id; - this.§_-OV§ = loop; + this.name_3I = id; + this.name_OV = loop; this._name = name; - this.§_-Cp§ = objectIDs; - this.§_-cT§ = tracks; + this.name_Cp = objectIDs; + this.name_cT = tracks; } public function get id() : int { - return this.§_-3I§; + return this.name_3I; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get loop() : Boolean { - return this.§_-OV§; + return this.name_OV; } public function set loop(value:Boolean) : void { - this.§_-OV§ = value; + this.name_OV = 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.name_Cp; } public function set objectIDs(value:Vector.) : void { - this.§_-Cp§ = value; + this.name_Cp = value; } public function get tracks() : Vector. { - return this.§_-cT§; + return this.name_cT; } public function set tracks(value:Vector.) : void { - this.§_-cT§ = value; + this.name_cT = 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..4f609d1 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 name_qC:Number; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; public function A3D2Keyframe(time:Number, transform:A3D2Transform) { super(); - this.§_-qC§ = time; - this.§_-bP§ = transform; + this.name_qC = time; + this.name_bP = transform; } public function get time() : Number { - return this.§_-qC§; + return this.name_qC; } public function set time(value:Number) : void { - this.§_-qC§ = value; + this.name_qC = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = 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..df5d653 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 name_3I:int; - private var §_-1§:Vector.; + private var name_1:Vector.; - private var §_-pa§:String; + private var name_pa:String; public function A3D2Track(id:int, keyframes:Vector., objectName:String) { super(); - this.§_-3I§ = id; - this.§_-1§ = keyframes; - this.§_-pa§ = objectName; + this.name_3I = id; + this.name_1 = keyframes; + this.name_pa = objectName; } public function get id() : int { - return this.§_-3I§; + return this.name_3I; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get keyframes() : Vector. { - return this.§_-1§; + return this.name_1; } public function set keyframes(value:Vector.) : void { - this.§_-1§ = value; + this.name_1 = value; } public function get objectName() : String { - return this.§_-pa§; + return this.name_pa; } public function set objectName(value:String) : void { - this.§_-pa§ = value; + this.name_pa = 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..5378d49 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 name_79:ByteArray; - private var §_-3I§:int; + private var name_3I:int; - private var §_-m0§:int; + private var name_m0:int; public function A3D2IndexBuffer(byteBuffer:ByteArray, id:int, indexCount:int) { super(); - this.§_-79§ = byteBuffer; - this.§_-3I§ = id; - this.§_-m0§ = indexCount; + this.name_79 = byteBuffer; + this.name_3I = id; + this.name_m0 = indexCount; } public function get byteBuffer() : ByteArray { - return this.§_-79§; + return this.name_79; } public function set byteBuffer(value:ByteArray) : void { - this.§_-79§ = value; + this.name_79 = value; } public function get id() : int { - return this.§_-3I§; + return this.name_3I; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get indexCount() : int { - return this.§_-m0§; + return this.name_m0; } public function set indexCount(value:int) : void { - this.§_-m0§ = value; + this.name_m0 = 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..11103bf 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 name_96:Vector.; - private var §_-79§:ByteArray; + private var name_79:ByteArray; - private var §_-3I§:int; + private var name_3I:int; - private var §_-g1§:uint; + private var name_g1: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.name_96 = attributes; + this.name_79 = byteBuffer; + this.name_3I = id; + this.name_g1 = vertexCount; } public function get attributes() : Vector. { - return this.§_-96§; + return this.name_96; } public function set attributes(value:Vector.) : void { - this.§_-96§ = value; + this.name_96 = value; } public function get byteBuffer() : ByteArray { - return this.§_-79§; + return this.name_79; } public function set byteBuffer(value:ByteArray) : void { - this.§_-79§ = value; + this.name_79 = value; } public function get id() : int { - return this.§_-3I§; + return this.name_3I; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get vertexCount() : uint { - return this.§_-g1§; + return this.name_g1; } public function set vertexCount(value:uint) : void { - this.§_-g1§ = value; + this.name_g1 = 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..1a2be01 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 name_0x:int; - private var §_-el§:int; + private var name_el:int; - private var §_-5I§:int; + private var name_5I:int; - private var §_-3I§:int; + private var name_3I:int; - private var §_-ML§:int; + private var name_ML:int; - private var §_-K§:int; + private var name_K:int; - private var §_-pW§:int; + private var name_pW: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.name_0x = backId; + this.name_el = bottomId; + this.name_5I = frontId; + this.name_3I = id; + this.name_ML = leftId; + this.name_K = rightId; + this.name_pW = topId; } public function get backId() : int { - return this.§_-0x§; + return this.name_0x; } public function set backId(value:int) : void { - this.§_-0x§ = value; + this.name_0x = value; } public function get bottomId() : int { - return this.§_-el§; + return this.name_el; } public function set bottomId(value:int) : void { - this.§_-el§ = value; + this.name_el = value; } public function get frontId() : int { - return this.§_-5I§; + return this.name_5I; } public function set frontId(value:int) : void { - this.§_-5I§ = value; + this.name_5I = value; } public function get id() : int { - return this.§_-3I§; + return this.name_3I; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get leftId() : int { - return this.§_-ML§; + return this.name_ML; } public function set leftId(value:int) : void { - this.§_-ML§ = value; + this.name_ML = value; } public function get rightId() : int { - return this.§_-K§; + return this.name_K; } public function set rightId(value:int) : void { - this.§_-K§ = value; + this.name_K = value; } public function get topId() : int { - return this.§_-pW§; + return this.name_pW; } public function set topId(value:int) : void { - this.§_-pW§ = value; + this.name_pW = 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..689e85b 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 name_3I:int; - private var §_-6D§:String; + private var name_6D:String; public function A3D2Image(id:int, url:String) { super(); - this.§_-3I§ = id; - this.§_-6D§ = url; + this.name_3I = id; + this.name_6D = url; } public function get id() : int { - return this.§_-3I§; + return this.name_3I; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get url() : String { - return this.§_-6D§; + return this.name_6D; } public function set url(value:String) : void { - this.§_-6D§ = value; + this.name_6D = 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..5d2e6c7 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 name_9y:uint; - private var §_-3I§:int; + private var name_3I:int; - private var §_-JE§:int; + private var name_JE:int; public function A3D2Map(channel:uint, id:int, imageId:int) { super(); - this.§_-9y§ = channel; - this.§_-3I§ = id; - this.§_-JE§ = imageId; + this.name_9y = channel; + this.name_3I = id; + this.name_JE = imageId; } public function get channel() : uint { - return this.§_-9y§; + return this.name_9y; } public function set channel(value:uint) : void { - this.§_-9y§ = value; + this.name_9y = value; } public function get id() : int { - return this.§_-3I§; + return this.name_3I; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get imageId() : int { - return this.§_-JE§; + return this.name_JE; } public function set imageId(value:int) : void { - this.§_-JE§ = value; + this.name_JE = 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..e03cd07 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 name_9s:int; - private var §_-bl§:int; + private var name_bl:int; - private var §_-3I§:int; + private var name_3I:int; - private var §_-qf§:int; + private var name_qf:int; - private var §_-QR§:int; + private var name_QR:int; - private var §_-Jn§:int; + private var name_Jn:int; - private var §_-iG§:int; + private var name_iG:int; - private var §_-LA§:int; + private var name_LA: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.name_9s = diffuseMapId; + this.name_bl = glossinessMapId; + this.name_3I = id; + this.name_qf = lightMapId; + this.name_QR = normalMapId; + this.name_Jn = opacityMapId; + this.name_iG = reflectionCubeMapId; + this.name_LA = specularMapId; } public function get diffuseMapId() : int { - return this.§_-9s§; + return this.name_9s; } public function set diffuseMapId(value:int) : void { - this.§_-9s§ = value; + this.name_9s = value; } public function get glossinessMapId() : int { - return this.§_-bl§; + return this.name_bl; } public function set glossinessMapId(value:int) : void { - this.§_-bl§ = value; + this.name_bl = value; } public function get id() : int { - return this.§_-3I§; + return this.name_3I; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get lightMapId() : int { - return this.§_-qf§; + return this.name_qf; } public function set lightMapId(value:int) : void { - this.§_-qf§ = value; + this.name_qf = value; } public function get normalMapId() : int { - return this.§_-QR§; + return this.name_QR; } public function set normalMapId(value:int) : void { - this.§_-QR§ = value; + this.name_QR = value; } public function get opacityMapId() : int { - return this.§_-Jn§; + return this.name_Jn; } public function set opacityMapId(value:int) : void { - this.§_-Jn§ = value; + this.name_Jn = value; } public function get reflectionCubeMapId() : int { - return this.§_-iG§; + return this.name_iG; } public function set reflectionCubeMapId(value:int) : void { - this.§_-iG§ = value; + this.name_iG = value; } public function get specularMapId() : int { - return this.§_-LA§; + return this.name_LA; } public function set specularMapId(value:int) : void { - this.§_-LA§ = value; + this.name_LA = 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..0ad02e5 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 name_jD:int; - private var §_-Tn§:uint; + private var name_Tn:uint; - private var §_-3I§:Long; + private var name_3I:Long; - private var §_-74§:Number; + private var name_74:Number; private var _name:String; - private var §_-fP§:Long; + private var name_fP:Long; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; - private var §_-1u§:Boolean; + private var name_1u: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.name_jD = boundBoxId; + this.name_Tn = color; + this.name_3I = id; + this.name_74 = intensity; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.name_fP = parentId; + this.name_bP = transform; + this.name_1u = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.name_jD = value; } public function get color() : uint { - return this.§_-Tn§; + return this.name_Tn; } public function set color(value:uint) : void { - this.§_-Tn§ = value; + this.name_Tn = value; } public function get id() : Long { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get intensity() : Number { - return this.§_-74§; + return this.name_74; } public function set intensity(value:Number) : void { - this.§_-74§ = value; + this.name_74 = 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.name_fP; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = 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..7fd4f9e 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 name_Ge:Vector.; - private var §_-3I§:int; + private var name_3I:int; public function A3D2Box(box:Vector., id:int) { super(); - this.§_-Ge§ = box; - this.§_-3I§ = id; + this.name_Ge = box; + this.name_3I = id; } public function get box() : Vector. { - return this.§_-Ge§; + return this.name_Ge; } public function set box(value:Vector.) : void { - this.§_-Ge§ = value; + this.name_Ge = value; } public function get id() : int { - return this.§_-3I§; + return this.name_3I; } public function set id(value:int) : void { - this.§_-3I§ = value; + this.name_3I = 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..76f2a5a 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 name_jD:int; - private var §_-3I§:Long; + private var name_3I:Long; - private var §_-Hc§:int; + private var name_Hc:int; private var _name:String; - private var §_-3D§:Number; + private var name_3D:Number; - private var §_-fP§:Long; + private var name_fP:Long; - private var §_-eW§:Vector.; + private var name_eW:Vector.; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; - private var §_-0B§:Vector.; + private var name_0B:Vector.; - private var §_-1u§:Boolean; + private var name_1u: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.name_jD = boundBoxId; + this.name_3I = id; + this.name_Hc = indexBufferId; this._name = name; - this.§_-3D§ = offset; - this.§_-fP§ = parentId; - this.§_-eW§ = surfaces; - this.§_-bP§ = transform; - this.§_-0B§ = vertexBuffers; - this.§_-1u§ = visible; + this.name_3D = offset; + this.name_fP = parentId; + this.name_eW = surfaces; + this.name_bP = transform; + this.name_0B = vertexBuffers; + this.name_1u = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.name_jD = value; } public function get id() : Long { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get indexBufferId() : int { - return this.§_-Hc§; + return this.name_Hc; } public function set indexBufferId(value:int) : void { - this.§_-Hc§ = value; + this.name_Hc = 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.name_3D; } public function set offset(value:Number) : void { - this.§_-3D§ = value; + this.name_3D = value; } public function get parentId() : Long { - return this.§_-fP§; + return this.name_fP; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get surfaces() : Vector. { - return this.§_-eW§; + return this.name_eW; } public function set surfaces(value:Vector.) : void { - this.§_-eW§ = value; + this.name_eW = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = value; } public function get vertexBuffers() : Vector. { - return this.§_-0B§; + return this.name_0B; } public function set vertexBuffers(value:Vector.) : void { - this.§_-0B§ = value; + this.name_0B = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = 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..b8a538a 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 name_jD:int; - private var §_-Tn§:uint; + private var name_Tn:uint; - private var §_-3I§:Long; + private var name_3I:Long; - private var §_-74§:Number; + private var name_74:Number; private var _name:String; - private var §_-fP§:Long; + private var name_fP:Long; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; - private var §_-1u§:Boolean; + private var name_1u: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.name_jD = boundBoxId; + this.name_Tn = color; + this.name_3I = id; + this.name_74 = intensity; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.name_fP = parentId; + this.name_bP = transform; + this.name_1u = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.name_jD = value; } public function get color() : uint { - return this.§_-Tn§; + return this.name_Tn; } public function set color(value:uint) : void { - this.§_-Tn§ = value; + this.name_Tn = value; } public function get id() : Long { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get intensity() : Number { - return this.§_-74§; + return this.name_74; } public function set intensity(value:Number) : void { - this.§_-74§ = value; + this.name_74 = 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.name_fP; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = 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..8937a1d 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 name_jD:int; - private var §_-3I§:Long; + private var name_3I:Long; private var _name:String; - private var §_-fP§:Long; + private var name_fP:Long; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; - private var §_-1u§:Boolean; + private var name_1u:Boolean; public function A3D2Joint(boundBoxId:int, id:Long, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.§_-jD§ = boundBoxId; - this.§_-3I§ = id; + this.name_jD = boundBoxId; + this.name_3I = id; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.name_fP = parentId; + this.name_bP = transform; + this.name_1u = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.name_jD = value; } public function get id() : Long { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = 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.name_fP; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = 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..5f05653 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 name_NL:A3D2Transform; - private var §_-3I§:Long; + private var name_3I:Long; public function A3D2JointBindTransform(bindPoseTransform:A3D2Transform, id:Long) { super(); - this.§_-NL§ = bindPoseTransform; - this.§_-3I§ = id; + this.name_NL = bindPoseTransform; + this.name_3I = id; } public function get bindPoseTransform() : A3D2Transform { - return this.§_-NL§; + return this.name_NL; } public function set bindPoseTransform(value:A3D2Transform) : void { - this.§_-NL§ = value; + this.name_NL = value; } public function get id() : Long { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = 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..0f08846 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 name_jD:int; - private var §_-3I§:Long; + private var name_3I:Long; - private var §_-Hc§:int; + private var name_Hc:int; private var _name:String; - private var §_-fP§:Long; + private var name_fP:Long; - private var §_-eW§:Vector.; + private var name_eW:Vector.; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; - private var §_-0B§:Vector.; + private var name_0B:Vector.; - private var §_-1u§:Boolean; + private var name_1u: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.name_jD = boundBoxId; + this.name_3I = id; + this.name_Hc = indexBufferId; this._name = name; - this.§_-fP§ = parentId; - this.§_-eW§ = surfaces; - this.§_-bP§ = transform; - this.§_-0B§ = vertexBuffers; - this.§_-1u§ = visible; + this.name_fP = parentId; + this.name_eW = surfaces; + this.name_bP = transform; + this.name_0B = vertexBuffers; + this.name_1u = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.name_jD = value; } public function get id() : Long { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get indexBufferId() : int { - return this.§_-Hc§; + return this.name_Hc; } public function set indexBufferId(value:int) : void { - this.§_-Hc§ = value; + this.name_Hc = 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.name_fP; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get surfaces() : Vector. { - return this.§_-eW§; + return this.name_eW; } public function set surfaces(value:Vector.) : void { - this.§_-eW§ = value; + this.name_eW = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = value; } public function get vertexBuffers() : Vector. { - return this.§_-0B§; + return this.name_0B; } public function set vertexBuffers(value:Vector.) : void { - this.§_-0B§ = value; + this.name_0B = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = 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..57e9d92 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 name_jD:int; - private var §_-3I§:Long; + private var name_3I:Long; private var _name:String; - private var §_-fP§:Long; + private var name_fP:Long; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; - private var §_-1u§:Boolean; + private var name_1u:Boolean; public function A3D2Object(boundBoxId:int, id:Long, name:String, parentId:Long, transform:A3D2Transform, visible:Boolean) { super(); - this.§_-jD§ = boundBoxId; - this.§_-3I§ = id; + this.name_jD = boundBoxId; + this.name_3I = id; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.name_fP = parentId; + this.name_bP = transform; + this.name_1u = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.name_jD = value; } public function get id() : Long { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = 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.name_fP; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = 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..70ef5d2 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 name_Hw:Number; - private var §_-AS§:Number; + private var name_AS:Number; - private var §_-jD§:int; + private var name_jD:int; - private var §_-Tn§:uint; + private var name_Tn:uint; - private var §_-3I§:Long; + private var name_3I:Long; - private var §_-74§:Number; + private var name_74:Number; private var _name:String; - private var §_-fP§:Long; + private var name_fP:Long; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; - private var §_-1u§:Boolean; + private var name_1u: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.name_Hw = attenuationBegin; + this.name_AS = attenuationEnd; + this.name_jD = boundBoxId; + this.name_Tn = color; + this.name_3I = id; + this.name_74 = intensity; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.name_fP = parentId; + this.name_bP = transform; + this.name_1u = visible; } public function get attenuationBegin() : Number { - return this.§_-Hw§; + return this.name_Hw; } public function set attenuationBegin(value:Number) : void { - this.§_-Hw§ = value; + this.name_Hw = value; } public function get attenuationEnd() : Number { - return this.§_-AS§; + return this.name_AS; } public function set attenuationEnd(value:Number) : void { - this.§_-AS§ = value; + this.name_AS = value; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.name_jD = value; } public function get color() : uint { - return this.§_-Tn§; + return this.name_Tn; } public function set color(value:uint) : void { - this.§_-Tn§ = value; + this.name_Tn = value; } public function get id() : Long { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get intensity() : Number { - return this.§_-74§; + return this.name_74; } public function set intensity(value:Number) : void { - this.§_-74§ = value; + this.name_74 = 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.name_fP; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = 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..414a80d 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 name_jD:int; - private var §_-3I§:Long; + private var name_3I:Long; - private var §_-Hc§:int; + private var name_Hc:int; - private var §_-KB§:Vector.; + private var name_KB:Vector.; - private var §_-26§:Vector.; + private var name_26:Vector.; private var _name:String; - private var §_-Dr§:Vector.; + private var name_Dr:Vector.; - private var §_-fP§:Long; + private var name_fP:Long; - private var §_-eW§:Vector.; + private var name_eW:Vector.; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; - private var §_-0B§:Vector.; + private var name_0B:Vector.; - private var §_-1u§:Boolean; + private var name_1u: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.name_jD = boundBoxId; + this.name_3I = id; + this.name_Hc = indexBufferId; + this.name_KB = jointBindTransforms; + this.name_26 = joints; this._name = name; - this.§_-Dr§ = numJoints; - this.§_-fP§ = parentId; - this.§_-eW§ = surfaces; - this.§_-bP§ = transform; - this.§_-0B§ = vertexBuffers; - this.§_-1u§ = visible; + this.name_Dr = numJoints; + this.name_fP = parentId; + this.name_eW = surfaces; + this.name_bP = transform; + this.name_0B = vertexBuffers; + this.name_1u = visible; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.name_jD = value; } public function get id() : Long { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get indexBufferId() : int { - return this.§_-Hc§; + return this.name_Hc; } public function set indexBufferId(value:int) : void { - this.§_-Hc§ = value; + this.name_Hc = value; } public function get jointBindTransforms() : Vector. { - return this.§_-KB§; + return this.name_KB; } public function set jointBindTransforms(value:Vector.) : void { - this.§_-KB§ = value; + this.name_KB = value; } public function get joints() : Vector. { - return this.§_-26§; + return this.name_26; } public function set joints(value:Vector.) : void { - this.§_-26§ = value; + this.name_26 = 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.name_Dr; } public function set numJoints(value:Vector.) : void { - this.§_-Dr§ = value; + this.name_Dr = value; } public function get parentId() : Long { - return this.§_-fP§; + return this.name_fP; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get surfaces() : Vector. { - return this.§_-eW§; + return this.name_eW; } public function set surfaces(value:Vector.) : void { - this.§_-eW§ = value; + this.name_eW = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = value; } public function get vertexBuffers() : Vector. { - return this.§_-0B§; + return this.name_0B; } public function set vertexBuffers(value:Vector.) : void { - this.§_-0B§ = value; + this.name_0B = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = 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..8628613 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 name_Hw:Number; - private var §_-AS§:Number; + private var name_AS:Number; - private var §_-jD§:int; + private var name_jD:int; - private var §_-Tn§:uint; + private var name_Tn:uint; - private var §_-a0§:Number; + private var name_a0:Number; - private var §_-GR§:Number; + private var name_GR:Number; - private var §_-3I§:Long; + private var name_3I:Long; - private var §_-74§:Number; + private var name_74:Number; private var _name:String; - private var §_-fP§:Long; + private var name_fP:Long; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; - private var §_-1u§:Boolean; + private var name_1u: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.name_Hw = attenuationBegin; + this.name_AS = attenuationEnd; + this.name_jD = boundBoxId; + this.name_Tn = color; + this.name_a0 = falloff; + this.name_GR = hotspot; + this.name_3I = id; + this.name_74 = intensity; this._name = name; - this.§_-fP§ = parentId; - this.§_-bP§ = transform; - this.§_-1u§ = visible; + this.name_fP = parentId; + this.name_bP = transform; + this.name_1u = visible; } public function get attenuationBegin() : Number { - return this.§_-Hw§; + return this.name_Hw; } public function set attenuationBegin(value:Number) : void { - this.§_-Hw§ = value; + this.name_Hw = value; } public function get attenuationEnd() : Number { - return this.§_-AS§; + return this.name_AS; } public function set attenuationEnd(value:Number) : void { - this.§_-AS§ = value; + this.name_AS = value; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.name_jD = value; } public function get color() : uint { - return this.§_-Tn§; + return this.name_Tn; } public function set color(value:uint) : void { - this.§_-Tn§ = value; + this.name_Tn = value; } public function get falloff() : Number { - return this.§_-a0§; + return this.name_a0; } public function set falloff(value:Number) : void { - this.§_-a0§ = value; + this.name_a0 = value; } public function get hotspot() : Number { - return this.§_-GR§; + return this.name_GR; } public function set hotspot(value:Number) : void { - this.§_-GR§ = value; + this.name_GR = value; } public function get id() : Long { - return this.§_-3I§; + return this.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get intensity() : Number { - return this.§_-74§; + return this.name_74; } public function set intensity(value:Number) : void { - this.§_-74§ = value; + this.name_74 = 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.name_fP; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = 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..eb9cea1 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 name_CL:Boolean; - private var §_-jD§:int; + private var name_jD:int; private var _height:Number; - private var §_-3I§:Long; + private var name_3I:Long; - private var §_-pS§:Id; + private var name_pS:Id; private var _name:String; - private var §_-4T§:Number; + private var name_4T:Number; - private var §_-TP§:Number; + private var name_TP:Number; - private var §_-fP§:Long; + private var name_fP:Long; - private var §_-2t§:Boolean; + private var name_2t:Boolean; - private var §_-Vd§:Number; + private var name_Vd:Number; - private var §_-bP§:A3D2Transform; + private var name_bP:A3D2Transform; - private var §_-1u§:Boolean; + private var name_1u:Boolean; - private var §_-qj§:Number; + private var name_qj: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.name_CL = alwaysOnTop; + this.name_jD = boundBoxId; this._height = height; - this.§_-3I§ = id; - this.§_-pS§ = materialId; + this.name_3I = id; + this.name_pS = 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.name_4T = originX; + this.name_TP = originY; + this.name_fP = parentId; + this.name_2t = perspectiveScale; + this.name_Vd = rotation; + this.name_bP = transform; + this.name_1u = visible; + this.name_qj = width; } public function get alwaysOnTop() : Boolean { - return this.§_-CL§; + return this.name_CL; } public function set alwaysOnTop(value:Boolean) : void { - this.§_-CL§ = value; + this.name_CL = value; } public function get boundBoxId() : int { - return this.§_-jD§; + return this.name_jD; } public function set boundBoxId(value:int) : void { - this.§_-jD§ = value; + this.name_jD = 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.name_3I; } public function set id(value:Long) : void { - this.§_-3I§ = value; + this.name_3I = value; } public function get materialId() : Id { - return this.§_-pS§; + return this.name_pS; } public function set materialId(value:Id) : void { - this.§_-pS§ = value; + this.name_pS = 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.name_4T; } public function set originX(value:Number) : void { - this.§_-4T§ = value; + this.name_4T = value; } public function get originY() : Number { - return this.§_-TP§; + return this.name_TP; } public function set originY(value:Number) : void { - this.§_-TP§ = value; + this.name_TP = value; } public function get parentId() : Long { - return this.§_-fP§; + return this.name_fP; } public function set parentId(value:Long) : void { - this.§_-fP§ = value; + this.name_fP = value; } public function get perspectiveScale() : Boolean { - return this.§_-2t§; + return this.name_2t; } public function set perspectiveScale(value:Boolean) : void { - this.§_-2t§ = value; + this.name_2t = value; } public function get rotation() : Number { - return this.§_-Vd§; + return this.name_Vd; } public function set rotation(value:Number) : void { - this.§_-Vd§ = value; + this.name_Vd = value; } public function get transform() : A3D2Transform { - return this.§_-bP§; + return this.name_bP; } public function set transform(value:A3D2Transform) : void { - this.§_-bP§ = value; + this.name_bP = value; } public function get visible() : Boolean { - return this.§_-1u§; + return this.name_1u; } public function set visible(value:Boolean) : void { - this.§_-1u§ = value; + this.name_1u = value; } public function get width() : Number { - return this.§_-qj§; + return this.name_qj; } public function set width(value:Number) : void { - this.§_-qj§ = value; + this.name_qj = 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..4609eca 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 name_50:int; - private var §_-pS§:int; + private var name_pS:int; - private var §_-4C§:int; + private var name_4C:int; public function A3D2Surface(indexBegin:int, materialId:int, numTriangles:int) { super(); - this.§_-50§ = indexBegin; - this.§_-pS§ = materialId; - this.§_-4C§ = numTriangles; + this.name_50 = indexBegin; + this.name_pS = materialId; + this.name_4C = numTriangles; } public function get indexBegin() : int { - return this.§_-50§; + return this.name_50; } public function set indexBegin(value:int) : void { - this.§_-50§ = value; + this.name_50 = value; } public function get materialId() : int { - return this.§_-pS§; + return this.name_pS; } public function set materialId(value:int) : void { - this.§_-pS§ = value; + this.name_pS = value; } public function get numTriangles() : int { - return this.§_-4C§; + return this.name_4C; } public function set numTriangles(value:int) : void { - this.§_-4C§ = value; + this.name_4C = 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..d528167 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 name_6p:A3DMatrix; public function A3D2Transform(matrix:A3DMatrix) { super(); - this.§_-6p§ = matrix; + this.name_6p = matrix; } public function get matrix() : A3DMatrix { - return this.§_-6p§; + return this.name_6p; } public function set matrix(value:A3DMatrix) : void { - this.§_-6p§ = value; + this.name_6p = value; } public function toString() : String