excalibur 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -1
- package/CHANGELOG.md +49 -9
- package/LICENSE.md +1 -1
- package/README.md +8 -12
- package/build/dist/Actions/Action/Blink.d.ts +3 -3
- package/build/dist/Actions/Action/Delay.d.ts +1 -5
- package/build/dist/Actions/Action/Die.d.ts +3 -5
- package/build/dist/Actions/Action/EaseTo.d.ts +4 -2
- package/build/dist/Actions/Action/Fade.d.ts +3 -3
- package/build/dist/Actions/Action/Follow.d.ts +6 -4
- package/build/dist/Actions/Action/Meet.d.ts +6 -4
- package/build/dist/Actions/Action/MoveBy.d.ts +6 -4
- package/build/dist/Actions/Action/MoveTo.d.ts +6 -4
- package/build/dist/Actions/Action/Repeat.d.ts +2 -2
- package/build/dist/Actions/Action/RepeatForever.d.ts +2 -2
- package/build/dist/Actions/Action/RotateBy.d.ts +4 -3
- package/build/dist/Actions/Action/RotateTo.d.ts +4 -3
- package/build/dist/Actions/Action/ScaleBy.d.ts +4 -3
- package/build/dist/Actions/Action/ScaleTo.d.ts +4 -3
- package/build/dist/Actions/Action.d.ts +2 -2
- package/build/dist/Actions/ActionContext.d.ts +16 -10
- package/build/dist/Actions/ActionQueue.d.ts +3 -3
- package/build/dist/Actions/ActionsComponent.d.ts +236 -0
- package/build/dist/Actions/ActionsSystem.d.ts +9 -0
- package/build/dist/Actions/Index.d.ts +2 -0
- package/build/dist/Actor.d.ts +10 -8
- package/build/dist/Engine.d.ts +6 -1
- package/build/dist/EntityComponentSystem/EntityManager.d.ts +1 -0
- package/build/dist/Graphics/Animation.d.ts +64 -0
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.d.ts +1 -1
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +6 -0
- package/build/dist/Graphics/GraphicsComponent.d.ts +2 -0
- package/build/dist/Loader.css +1 -0
- package/build/dist/Loader.d.ts +1 -0
- package/build/dist/Screen.d.ts +3 -0
- package/build/dist/excalibur.js +14369 -13942
- package/build/dist/excalibur.js.map +1 -1
- package/build/dist/excalibur.min.js +1 -1
- package/build/dist/excalibur.min.js.LICENSE.txt +1 -1
- package/build/dist/excalibur.min.js.map +1 -1
- package/build/esm/Actions/Action/Blink.d.ts +17 -0
- package/build/esm/Actions/Action/CallMethod.d.ts +10 -0
- package/build/esm/Actions/Action/Delay.d.ts +12 -0
- package/build/esm/Actions/Action/Die.d.ts +11 -0
- package/build/esm/Actions/Action/EaseTo.d.ts +21 -0
- package/build/esm/Actions/Action/Fade.d.ts +17 -0
- package/build/esm/Actions/Action/Follow.d.ts +23 -0
- package/build/esm/Actions/Action/Meet.d.ts +23 -0
- package/build/esm/Actions/Action/MoveBy.d.ts +22 -0
- package/build/esm/Actions/Action/MoveTo.d.ts +21 -0
- package/build/esm/Actions/Action/Repeat.d.ts +16 -0
- package/build/esm/Actions/Action/RepeatForever.d.ts +20 -0
- package/build/esm/Actions/Action/RotateBy.d.ts +27 -0
- package/build/esm/Actions/Action/RotateTo.d.ts +26 -0
- package/build/esm/Actions/Action/ScaleBy.d.ts +24 -0
- package/build/esm/Actions/Action/ScaleTo.d.ts +23 -0
- package/build/esm/Actions/Action.d.ts +10 -0
- package/build/esm/Actions/ActionContext.d.ts +219 -0
- package/build/esm/Actions/ActionQueue.d.ts +56 -0
- package/build/esm/Actions/Actionable.d.ts +4 -0
- package/build/esm/Actions/ActionsComponent.d.ts +236 -0
- package/build/esm/Actions/ActionsSystem.d.ts +9 -0
- package/build/{dist/Actions/Index.js → esm/Actions/Index.d.ts} +2 -1
- package/build/{dist/Actions/RotationType.js → esm/Actions/RotationType.d.ts} +6 -8
- package/build/esm/Actor.d.ts +727 -0
- package/build/esm/Camera.d.ts +360 -0
- package/build/{dist/Class.js → esm/Class.d.ts} +12 -17
- package/build/esm/Collision/BodyComponent.d.ts +208 -0
- package/build/esm/Collision/BoundingBox.d.ts +109 -0
- package/build/esm/Collision/ColliderComponent.d.ts +98 -0
- package/build/esm/Collision/Colliders/CircleCollider.d.ts +92 -0
- package/build/esm/Collision/Colliders/ClosestLineJumpTable.d.ts +23 -0
- package/build/esm/Collision/Colliders/Collider.d.ts +94 -0
- package/build/esm/Collision/Colliders/CollisionJumpTable.d.ts +14 -0
- package/build/esm/Collision/Colliders/CompositeCollider.d.ts +38 -0
- package/build/esm/Collision/Colliders/EdgeCollider.d.ts +112 -0
- package/build/esm/Collision/Colliders/PolygonCollider.d.ts +138 -0
- package/build/esm/Collision/Colliders/SeparatingAxis.d.ts +46 -0
- package/build/esm/Collision/Colliders/Shape.d.ts +54 -0
- package/build/esm/Collision/CollisionSystem.d.ts +26 -0
- package/build/{dist/Collision/CollisionType.js → esm/Collision/CollisionType.d.ts} +6 -8
- package/build/esm/Collision/Detection/CollisionContact.d.ts +53 -0
- package/build/esm/Collision/Detection/CollisionProcessor.d.ts +28 -0
- package/build/esm/Collision/Detection/DynamicTree.d.ts +85 -0
- package/build/esm/Collision/Detection/DynamicTreeCollisionProcessor.d.ts +40 -0
- package/build/esm/Collision/Detection/Pair.d.ts +31 -0
- package/build/{dist/Collision/Group/CollisionGroup.js → esm/Collision/Group/CollisionGroup.d.ts} +17 -36
- package/build/esm/Collision/Group/CollisionGroupManager.d.ts +30 -0
- package/build/{dist/Collision/Index.js → esm/Collision/Index.d.ts} +0 -1
- package/build/esm/Collision/Integrator.d.ts +6 -0
- package/build/esm/Collision/MotionSystem.d.ts +11 -0
- package/build/esm/Collision/Physics.d.ts +133 -0
- package/build/esm/Collision/Side.d.ts +21 -0
- package/build/esm/Collision/Solver/ArcadeSolver.d.ts +15 -0
- package/build/esm/Collision/Solver/ContactConstraintPoint.d.ts +43 -0
- package/build/esm/Collision/Solver/RealisticSolver.d.ts +21 -0
- package/build/esm/Collision/Solver/Solver.d.ts +50 -0
- package/build/esm/Color.d.ts +244 -0
- package/build/esm/Configurable.d.ts +9 -0
- package/build/esm/Debug/Debug.d.ts +327 -0
- package/build/esm/Debug/DebugFlags.d.ts +11 -0
- package/build/esm/Debug/DebugSystem.d.ts +29 -0
- package/build/{dist/Debug/index.js → esm/Debug/index.d.ts} +0 -1
- package/build/esm/Deprecated.d.ts +0 -0
- package/build/esm/Drawing/Animation.d.ts +196 -0
- package/build/esm/Drawing/CanvasDrawComponent.d.ts +10 -0
- package/build/esm/Drawing/CanvasDrawingSystem.d.ts +23 -0
- package/build/esm/Drawing/Index.d.ts +9 -0
- package/build/esm/Drawing/Polygon.d.ts +74 -0
- package/build/esm/Drawing/Sprite.d.ts +159 -0
- package/build/esm/Drawing/SpriteEffects.d.ts +120 -0
- package/build/esm/Drawing/SpriteSheet.d.ts +184 -0
- package/build/esm/Drawing/Texture.d.ts +44 -0
- package/build/esm/Engine.d.ts +586 -0
- package/build/esm/EntityComponentSystem/Component.d.ts +69 -0
- package/build/esm/EntityComponentSystem/Components/MotionComponent.d.ts +55 -0
- package/build/esm/EntityComponentSystem/Components/TransformComponent.d.ts +103 -0
- package/build/esm/EntityComponentSystem/Entity.d.ts +247 -0
- package/build/esm/EntityComponentSystem/EntityManager.d.ts +35 -0
- package/build/esm/EntityComponentSystem/Query.d.ts +51 -0
- package/build/esm/EntityComponentSystem/QueryManager.d.ts +48 -0
- package/build/esm/EntityComponentSystem/System.d.ts +107 -0
- package/build/esm/EntityComponentSystem/SystemManager.d.ts +45 -0
- package/build/esm/EntityComponentSystem/Util.d.ts +1 -0
- package/build/esm/EntityComponentSystem/World.d.ts +45 -0
- package/build/{dist/EntityComponentSystem/index.js → esm/EntityComponentSystem/index.d.ts} +0 -1
- package/build/esm/EventDispatcher.d.ts +51 -0
- package/build/esm/Events/MediaEvents.d.ts +47 -0
- package/build/esm/Events.d.ts +475 -0
- package/build/esm/Flags.d.ts +62 -0
- package/build/esm/Graphics/Animation.d.ts +189 -0
- package/build/esm/Graphics/Canvas.d.ts +24 -0
- package/build/esm/Graphics/Circle.d.ts +15 -0
- package/build/esm/Graphics/Context/ExcaliburGraphicsContext.d.ts +155 -0
- package/build/esm/Graphics/Context/ExcaliburGraphicsContext2DCanvas.d.ts +87 -0
- package/build/esm/Graphics/Context/ExcaliburGraphicsContextWebGL.d.ts +111 -0
- package/build/esm/Graphics/Context/batch.d.ts +11 -0
- package/build/esm/Graphics/Context/debug-text.d.ts +24 -0
- package/build/esm/Graphics/Context/draw-image-command.d.ts +47 -0
- package/build/esm/Graphics/Context/image-renderer.d.ts +39 -0
- package/build/esm/Graphics/Context/line-renderer.d.ts +22 -0
- package/build/esm/Graphics/Context/point-renderer.d.ts +22 -0
- package/build/esm/Graphics/Context/renderer.d.ts +66 -0
- package/build/esm/Graphics/Context/shader.d.ts +81 -0
- package/build/esm/Graphics/Context/state-stack.d.ts +10 -0
- package/build/esm/Graphics/Context/texture-loader.d.ts +33 -0
- package/build/esm/Graphics/Context/transform-stack.d.ts +12 -0
- package/build/esm/Graphics/Context/webgl-util.d.ts +12 -0
- package/build/esm/Graphics/Font.d.ts +57 -0
- package/build/{dist/Graphics/FontCommon.js → esm/Graphics/FontCommon.d.ts} +54 -37
- package/build/esm/Graphics/Graphic.d.ts +129 -0
- package/build/esm/Graphics/GraphicsComponent.d.ts +224 -0
- package/build/esm/Graphics/GraphicsDiagnostics.d.ts +5 -0
- package/build/esm/Graphics/GraphicsGroup.d.ts +24 -0
- package/build/esm/Graphics/GraphicsSystem.d.ts +35 -0
- package/build/esm/Graphics/ImageSource.d.ts +53 -0
- package/build/esm/Graphics/Polygon.d.ts +17 -0
- package/build/esm/Graphics/Raster.d.ts +105 -0
- package/build/esm/Graphics/Rectangle.d.ts +13 -0
- package/build/esm/Graphics/Sprite.d.ts +59 -0
- package/build/esm/Graphics/SpriteFont.d.ts +53 -0
- package/build/esm/Graphics/SpriteSheet.d.ts +137 -0
- package/build/esm/Graphics/Text.d.ts +29 -0
- package/build/{dist/Graphics/index.js → esm/Graphics/index.d.ts} +0 -4
- package/build/esm/Id.d.ts +8 -0
- package/build/esm/Input/CapturePointerConfig.d.ts +13 -0
- package/build/esm/Input/EngineInput.d.ts +8 -0
- package/build/esm/Input/Gamepad.d.ts +227 -0
- package/build/{dist/Input/Index.js → esm/Input/Index.d.ts} +0 -1
- package/build/esm/Input/Keyboard.d.ts +187 -0
- package/build/esm/Input/Pointer.d.ts +134 -0
- package/build/esm/Input/PointerEvents.d.ts +170 -0
- package/build/esm/Input/Pointers.d.ts +78 -0
- package/build/esm/Interfaces/Audio.d.ts +29 -0
- package/build/esm/Interfaces/AudioImplementation.d.ts +25 -0
- package/build/esm/Interfaces/Clonable.d.ts +3 -0
- package/build/esm/Interfaces/Drawable.d.ts +97 -0
- package/build/esm/Interfaces/Evented.d.ts +31 -0
- package/build/{dist/Interfaces/Index.js → esm/Interfaces/Index.d.ts} +0 -1
- package/build/esm/Interfaces/LifecycleEvents.d.ts +167 -0
- package/build/esm/Interfaces/Loadable.d.ts +18 -0
- package/build/esm/Interfaces/PointerEventHandlers.d.ts +40 -0
- package/build/esm/Interfaces/Trait.d.ts +9 -0
- package/build/esm/Label.d.ts +146 -0
- package/build/esm/Loader.d.ts +174 -0
- package/build/{dist/Math/Index.js → esm/Math/Index.d.ts} +0 -1
- package/build/esm/Math/Random.d.ts +125 -0
- package/build/esm/Math/global-coordinates.d.ts +10 -0
- package/build/esm/Math/line.d.ts +95 -0
- package/build/esm/Math/matrix.d.ts +110 -0
- package/build/esm/Math/projection.d.ts +10 -0
- package/build/esm/Math/ray.d.ts +25 -0
- package/build/esm/Math/vector-view.d.ts +18 -0
- package/build/esm/Math/vector.d.ts +201 -0
- package/build/esm/Particles.d.ts +244 -0
- package/build/esm/Polyfill.d.ts +6 -0
- package/build/esm/PostProcessing/ColorBlindCorrector.d.ts +28 -0
- package/build/{dist/PostProcessing/Index.js → esm/PostProcessing/Index.d.ts} +0 -1
- package/build/esm/PostProcessing/PostProcessor.d.ts +6 -0
- package/build/esm/Promises.d.ts +87 -0
- package/build/esm/Resources/Gif.d.ts +117 -0
- package/build/{dist/Resources/Index.js → esm/Resources/Index.d.ts} +0 -1
- package/build/esm/Resources/Resource.d.ts +31 -0
- package/build/esm/Resources/Sound/AudioContext.d.ts +7 -0
- package/build/{dist/Resources/Sound/Index.js → esm/Resources/Sound/Index.d.ts} +0 -1
- package/build/esm/Resources/Sound/Sound.d.ts +79 -0
- package/build/esm/Resources/Sound/WebAudioInstance.d.ts +45 -0
- package/build/esm/Scene.d.ts +301 -0
- package/build/esm/Screen.d.ts +285 -0
- package/build/esm/ScreenElement.d.ts +13 -0
- package/build/esm/TileMap.d.ts +222 -0
- package/build/esm/Timer.d.ts +93 -0
- package/build/esm/Traits/CapturePointer.d.ts +10 -0
- package/build/{dist/Traits/Index.js → esm/Traits/Index.d.ts} +0 -1
- package/build/esm/Traits/OffscreenCulling.d.ts +11 -0
- package/build/esm/Trigger.d.ts +48 -0
- package/build/esm/Util/Actors.d.ts +12 -0
- package/build/esm/Util/Browser.d.ts +28 -0
- package/build/esm/Util/CullingBox.d.ts +23 -0
- package/build/esm/Util/Decorators.d.ts +15 -0
- package/build/esm/Util/Detector.d.ts +40 -0
- package/build/esm/Util/DrawUtil.d.ts +69 -0
- package/build/esm/Util/EasingFunctions.d.ts +59 -0
- package/build/{dist/Util/Index.js → esm/Util/Index.d.ts} +0 -1
- package/build/esm/Util/Log.d.ts +109 -0
- package/build/esm/Util/Observable.d.ts +55 -0
- package/build/esm/Util/Pool.d.ts +44 -0
- package/build/esm/Util/SortedList.d.ts +52 -0
- package/build/esm/Util/Sound.d.ts +4 -0
- package/build/esm/Util/Util.d.ts +196 -0
- package/build/esm/Util/Watch.d.ts +8 -0
- package/build/esm/Util/WebAudio.d.ts +15 -0
- package/build/esm/excalibur.d.ts +2 -0
- package/build/esm/excalibur.js +28874 -0
- package/build/esm/excalibur.js.map +1 -0
- package/build/esm/excalibur.min.js +3 -0
- package/build/esm/excalibur.min.js.LICENSE.txt +7 -0
- package/build/esm/excalibur.min.js.map +1 -0
- package/build/{dist/index.js → esm/index.d.ts} +4 -18
- package/package.json +31 -25
- package/wallaby.js +2 -0
- package/build/dist/Actions/Action/Blink.js +0 -45
- package/build/dist/Actions/Action/Blink.js.map +0 -1
- package/build/dist/Actions/Action/CallMethod.js +0 -21
- package/build/dist/Actions/Action/CallMethod.js.map +0 -1
- package/build/dist/Actions/Action/Delay.js +0 -28
- package/build/dist/Actions/Action/Delay.js.map +0 -1
- package/build/dist/Actions/Action/Die.js +0 -21
- package/build/dist/Actions/Action/Die.js.map +0 -1
- package/build/dist/Actions/Action/EaseTo.js +0 -66
- package/build/dist/Actions/Action/EaseTo.js.map +0 -1
- package/build/dist/Actions/Action/Fade.js +0 -42
- package/build/dist/Actions/Action/Fade.js.map +0 -1
- package/build/dist/Actions/Action/Follow.js +0 -51
- package/build/dist/Actions/Action/Follow.js.map +0 -1
- package/build/dist/Actions/Action/Meet.js +0 -48
- package/build/dist/Actions/Action/Meet.js.map +0 -1
- package/build/dist/Actions/Action/MoveBy.js +0 -42
- package/build/dist/Actions/Action/MoveBy.js.map +0 -1
- package/build/dist/Actions/Action/MoveTo.js +0 -35
- package/build/dist/Actions/Action/MoveTo.js.map +0 -1
- package/build/dist/Actions/Action/Repeat.js +0 -31
- package/build/dist/Actions/Action/Repeat.js.map +0 -1
- package/build/dist/Actions/Action/RepeatForever.js +0 -37
- package/build/dist/Actions/Action/RepeatForever.js.map +0 -1
- package/build/dist/Actions/Action/RotateBy.js +0 -88
- package/build/dist/Actions/Action/RotateBy.js.map +0 -1
- package/build/dist/Actions/Action/RotateTo.js +0 -87
- package/build/dist/Actions/Action/RotateTo.js.map +0 -1
- package/build/dist/Actions/Action/ScaleBy.js +0 -47
- package/build/dist/Actions/Action/ScaleBy.js.map +0 -1
- package/build/dist/Actions/Action/ScaleTo.js +0 -58
- package/build/dist/Actions/Action/ScaleTo.js.map +0 -1
- package/build/dist/Actions/Action.js +0 -2
- package/build/dist/Actions/Action.js.map +0 -1
- package/build/dist/Actions/ActionContext.js +0 -297
- package/build/dist/Actions/ActionContext.js.map +0 -1
- package/build/dist/Actions/ActionQueue.js +0 -87
- package/build/dist/Actions/ActionQueue.js.map +0 -1
- package/build/dist/Actions/Actionable.js +0 -2
- package/build/dist/Actions/Actionable.js.map +0 -1
- package/build/dist/Actions/Index.js.map +0 -1
- package/build/dist/Actions/RotationType.js.map +0 -1
- package/build/dist/Actor.js +0 -856
- package/build/dist/Actor.js.map +0 -1
- package/build/dist/Camera.js +0 -627
- package/build/dist/Camera.js.map +0 -1
- package/build/dist/Class.js.map +0 -1
- package/build/dist/Collision/BodyComponent.js +0 -347
- package/build/dist/Collision/BodyComponent.js.map +0 -1
- package/build/dist/Collision/BoundingBox.js +0 -355
- package/build/dist/Collision/BoundingBox.js.map +0 -1
- package/build/dist/Collision/ColliderComponent.js +0 -201
- package/build/dist/Collision/ColliderComponent.js.map +0 -1
- package/build/dist/Collision/Colliders/CircleCollider.js +0 -215
- package/build/dist/Collision/Colliders/CircleCollider.js.map +0 -1
- package/build/dist/Collision/Colliders/ClosestLineJumpTable.js +0 -211
- package/build/dist/Collision/Colliders/ClosestLineJumpTable.js.map +0 -1
- package/build/dist/Collision/Colliders/Collider.js +0 -26
- package/build/dist/Collision/Colliders/Collider.js.map +0 -1
- package/build/dist/Collision/Colliders/CollisionJumpTable.js +0 -301
- package/build/dist/Collision/Colliders/CollisionJumpTable.js.map +0 -1
- package/build/dist/Collision/Colliders/CompositeCollider.js +0 -232
- package/build/dist/Collision/Colliders/CompositeCollider.js.map +0 -1
- package/build/dist/Collision/Colliders/EdgeCollider.js +0 -253
- package/build/dist/Collision/Colliders/EdgeCollider.js.map +0 -1
- package/build/dist/Collision/Colliders/PolygonCollider.js +0 -389
- package/build/dist/Collision/Colliders/PolygonCollider.js.map +0 -1
- package/build/dist/Collision/Colliders/SeparatingAxis.js +0 -67
- package/build/dist/Collision/Colliders/SeparatingAxis.js.map +0 -1
- package/build/dist/Collision/Colliders/Shape.js +0 -102
- package/build/dist/Collision/Colliders/Shape.js.map +0 -1
- package/build/dist/Collision/CollisionSystem.js +0 -116
- package/build/dist/Collision/CollisionSystem.js.map +0 -1
- package/build/dist/Collision/CollisionType.js.map +0 -1
- package/build/dist/Collision/Detection/CollisionContact.js +0 -46
- package/build/dist/Collision/Detection/CollisionContact.js.map +0 -1
- package/build/dist/Collision/Detection/CollisionProcessor.js +0 -2
- package/build/dist/Collision/Detection/CollisionProcessor.js.map +0 -1
- package/build/dist/Collision/Detection/DynamicTree.js +0 -442
- package/build/dist/Collision/Detection/DynamicTree.js.map +0 -1
- package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.js +0 -228
- package/build/dist/Collision/Detection/DynamicTreeCollisionProcessor.js.map +0 -1
- package/build/dist/Collision/Detection/Pair.js +0 -74
- package/build/dist/Collision/Detection/Pair.js.map +0 -1
- package/build/dist/Collision/Group/CollisionGroup.js.map +0 -1
- package/build/dist/Collision/Group/CollisionGroupManager.js +0 -52
- package/build/dist/Collision/Group/CollisionGroupManager.js.map +0 -1
- package/build/dist/Collision/Index.js.map +0 -1
- package/build/dist/Collision/Integrator.js +0 -11
- package/build/dist/Collision/Integrator.js.map +0 -1
- package/build/dist/Collision/MotionSystem.js +0 -38
- package/build/dist/Collision/MotionSystem.js.map +0 -1
- package/build/dist/Collision/Physics.js +0 -163
- package/build/dist/Collision/Physics.js.map +0 -1
- package/build/dist/Collision/Side.js +0 -51
- package/build/dist/Collision/Side.js.map +0 -1
- package/build/dist/Collision/Solver/ArcadeSolver.js +0 -96
- package/build/dist/Collision/Solver/ArcadeSolver.js.map +0 -1
- package/build/dist/Collision/Solver/ContactConstraintPoint.js +0 -83
- package/build/dist/Collision/Solver/ContactConstraintPoint.js.map +0 -1
- package/build/dist/Collision/Solver/RealisticSolver.js +0 -248
- package/build/dist/Collision/Solver/RealisticSolver.js.map +0 -1
- package/build/dist/Collision/Solver/Solver.js +0 -37
- package/build/dist/Collision/Solver/Solver.js.map +0 -1
- package/build/dist/Color.js +0 -461
- package/build/dist/Color.js.map +0 -1
- package/build/dist/Configurable.js +0 -32
- package/build/dist/Configurable.js.map +0 -1
- package/build/dist/Debug/Debug.js +0 -339
- package/build/dist/Debug/Debug.js.map +0 -1
- package/build/dist/Debug/DebugFlags.js +0 -13
- package/build/dist/Debug/DebugFlags.js.map +0 -1
- package/build/dist/Debug/DebugSystem.js +0 -242
- package/build/dist/Debug/DebugSystem.js.map +0 -1
- package/build/dist/Debug/index.js.map +0 -1
- package/build/dist/Deprecated.js +0 -2
- package/build/dist/Deprecated.js.map +0 -1
- package/build/dist/Drawing/Animation.js +0 -285
- package/build/dist/Drawing/Animation.js.map +0 -1
- package/build/dist/Drawing/CanvasDrawComponent.js +0 -16
- package/build/dist/Drawing/CanvasDrawComponent.js.map +0 -1
- package/build/dist/Drawing/CanvasDrawingSystem.js +0 -95
- package/build/dist/Drawing/CanvasDrawingSystem.js.map +0 -1
- package/build/dist/Drawing/Index.js +0 -10
- package/build/dist/Drawing/Index.js.map +0 -1
- package/build/dist/Drawing/Polygon.js +0 -129
- package/build/dist/Drawing/Polygon.js.map +0 -1
- package/build/dist/Drawing/Sprite.js +0 -356
- package/build/dist/Drawing/Sprite.js.map +0 -1
- package/build/dist/Drawing/SpriteEffects.js +0 -246
- package/build/dist/Drawing/SpriteEffects.js.map +0 -1
- package/build/dist/Drawing/SpriteSheet.js +0 -413
- package/build/dist/Drawing/SpriteSheet.js.map +0 -1
- package/build/dist/Drawing/Texture.js +0 -80
- package/build/dist/Drawing/Texture.js.map +0 -1
- package/build/dist/Engine.js +0 -871
- package/build/dist/Engine.js.map +0 -1
- package/build/dist/EntityComponentSystem/Component.js +0 -65
- package/build/dist/EntityComponentSystem/Component.js.map +0 -1
- package/build/dist/EntityComponentSystem/Components/MotionComponent.js +0 -33
- package/build/dist/EntityComponentSystem/Components/MotionComponent.js.map +0 -1
- package/build/dist/EntityComponentSystem/Components/TransformComponent.js +0 -249
- package/build/dist/EntityComponentSystem/Components/TransformComponent.js.map +0 -1
- package/build/dist/EntityComponentSystem/Entity.js +0 -452
- package/build/dist/EntityComponentSystem/Entity.js.map +0 -1
- package/build/dist/EntityComponentSystem/EntityManager.js +0 -121
- package/build/dist/EntityComponentSystem/EntityManager.js.map +0 -1
- package/build/dist/EntityComponentSystem/Query.js +0 -91
- package/build/dist/EntityComponentSystem/Query.js.map +0 -1
- package/build/dist/EntityComponentSystem/QueryManager.js +0 -90
- package/build/dist/EntityComponentSystem/QueryManager.js.map +0 -1
- package/build/dist/EntityComponentSystem/System.js +0 -76
- package/build/dist/EntityComponentSystem/System.js.map +0 -1
- package/build/dist/EntityComponentSystem/SystemManager.js +0 -96
- package/build/dist/EntityComponentSystem/SystemManager.js.map +0 -1
- package/build/dist/EntityComponentSystem/Util.js +0 -5
- package/build/dist/EntityComponentSystem/Util.js.map +0 -1
- package/build/dist/EntityComponentSystem/World.js +0 -55
- package/build/dist/EntityComponentSystem/World.js.map +0 -1
- package/build/dist/EntityComponentSystem/index.js.map +0 -1
- package/build/dist/EventDispatcher.js +0 -133
- package/build/dist/EventDispatcher.js.map +0 -1
- package/build/dist/Events/MediaEvents.js +0 -75
- package/build/dist/Events/MediaEvents.js.map +0 -1
- package/build/dist/Events.js +0 -497
- package/build/dist/Events.js.map +0 -1
- package/build/dist/Flags.js +0 -90
- package/build/dist/Flags.js.map +0 -1
- package/build/dist/Graphics/Animation.js +0 -230
- package/build/dist/Graphics/Animation.js.map +0 -1
- package/build/dist/Graphics/Canvas.js +0 -34
- package/build/dist/Graphics/Canvas.js.map +0 -1
- package/build/dist/Graphics/Circle.js +0 -39
- package/build/dist/Graphics/Circle.js.map +0 -1
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.js +0 -2
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext.js.map +0 -1
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.js +0 -177
- package/build/dist/Graphics/Context/ExcaliburGraphicsContext2DCanvas.js.map +0 -1
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.js +0 -188
- package/build/dist/Graphics/Context/ExcaliburGraphicsContextWebGL.js.map +0 -1
- package/build/dist/Graphics/Context/batch.js +0 -24
- package/build/dist/Graphics/Context/batch.js.map +0 -1
- package/build/dist/Graphics/Context/debug-text.js +0 -47
- package/build/dist/Graphics/Context/debug-text.js.map +0 -1
- package/build/dist/Graphics/Context/draw-image-command.js +0 -179
- package/build/dist/Graphics/Context/draw-image-command.js.map +0 -1
- package/build/dist/Graphics/Context/image-renderer.js +0 -295
- package/build/dist/Graphics/Context/image-renderer.js.map +0 -1
- package/build/dist/Graphics/Context/line-renderer.js +0 -70
- package/build/dist/Graphics/Context/line-renderer.js.map +0 -1
- package/build/dist/Graphics/Context/point-renderer.js +0 -67
- package/build/dist/Graphics/Context/point-renderer.js.map +0 -1
- package/build/dist/Graphics/Context/renderer.js +0 -75
- package/build/dist/Graphics/Context/renderer.js.map +0 -1
- package/build/dist/Graphics/Context/shader.js +0 -189
- package/build/dist/Graphics/Context/shader.js.map +0 -1
- package/build/dist/Graphics/Context/state-stack.js +0 -27
- package/build/dist/Graphics/Context/state-stack.js.map +0 -1
- package/build/dist/Graphics/Context/texture-loader.js +0 -84
- package/build/dist/Graphics/Context/texture-loader.js.map +0 -1
- package/build/dist/Graphics/Context/transform-stack.js +0 -30
- package/build/dist/Graphics/Context/transform-stack.js.map +0 -1
- package/build/dist/Graphics/Context/webgl-util.js +0 -26
- package/build/dist/Graphics/Context/webgl-util.js.map +0 -1
- package/build/dist/Graphics/Font.js +0 -209
- package/build/dist/Graphics/Font.js.map +0 -1
- package/build/dist/Graphics/FontCommon.js.map +0 -1
- package/build/dist/Graphics/Graphic.js +0 -147
- package/build/dist/Graphics/Graphic.js.map +0 -1
- package/build/dist/Graphics/GraphicsComponent.js +0 -276
- package/build/dist/Graphics/GraphicsComponent.js.map +0 -1
- package/build/dist/Graphics/GraphicsDiagnostics.js +0 -9
- package/build/dist/Graphics/GraphicsDiagnostics.js.map +0 -1
- package/build/dist/Graphics/GraphicsGroup.js +0 -66
- package/build/dist/Graphics/GraphicsGroup.js.map +0 -1
- package/build/dist/Graphics/GraphicsSystem.js +0 -161
- package/build/dist/Graphics/GraphicsSystem.js.map +0 -1
- package/build/dist/Graphics/ImageSource.js +0 -117
- package/build/dist/Graphics/ImageSource.js.map +0 -1
- package/build/dist/Graphics/Polygon.js +0 -51
- package/build/dist/Graphics/Polygon.js.map +0 -1
- package/build/dist/Graphics/Raster.js +0 -209
- package/build/dist/Graphics/Raster.js.map +0 -1
- package/build/dist/Graphics/Rectangle.js +0 -24
- package/build/dist/Graphics/Rectangle.js.map +0 -1
- package/build/dist/Graphics/Sprite.js +0 -81
- package/build/dist/Graphics/Sprite.js.map +0 -1
- package/build/dist/Graphics/SpriteFont.js +0 -116
- package/build/dist/Graphics/SpriteFont.js.map +0 -1
- package/build/dist/Graphics/SpriteSheet.js +0 -116
- package/build/dist/Graphics/SpriteSheet.js.map +0 -1
- package/build/dist/Graphics/Text.js +0 -82
- package/build/dist/Graphics/Text.js.map +0 -1
- package/build/dist/Graphics/index.js.map +0 -1
- package/build/dist/Id.js +0 -8
- package/build/dist/Id.js.map +0 -1
- package/build/dist/Input/CapturePointerConfig.js +0 -5
- package/build/dist/Input/CapturePointerConfig.js.map +0 -1
- package/build/dist/Input/EngineInput.js +0 -2
- package/build/dist/Input/EngineInput.js.map +0 -1
- package/build/dist/Input/Gamepad.js +0 -358
- package/build/dist/Input/Gamepad.js.map +0 -1
- package/build/dist/Input/Index.js.map +0 -1
- package/build/dist/Input/Keyboard.js +0 -267
- package/build/dist/Input/Keyboard.js.map +0 -1
- package/build/dist/Input/Pointer.js +0 -205
- package/build/dist/Input/Pointer.js.map +0 -1
- package/build/dist/Input/PointerEvents.js +0 -309
- package/build/dist/Input/PointerEvents.js.map +0 -1
- package/build/dist/Input/Pointers.js +0 -405
- package/build/dist/Input/Pointers.js.map +0 -1
- package/build/dist/Interfaces/Audio.js +0 -2
- package/build/dist/Interfaces/Audio.js.map +0 -1
- package/build/dist/Interfaces/AudioImplementation.js +0 -11
- package/build/dist/Interfaces/AudioImplementation.js.map +0 -1
- package/build/dist/Interfaces/Clonable.js +0 -2
- package/build/dist/Interfaces/Clonable.js.map +0 -1
- package/build/dist/Interfaces/Drawable.js +0 -2
- package/build/dist/Interfaces/Drawable.js.map +0 -1
- package/build/dist/Interfaces/Evented.js +0 -2
- package/build/dist/Interfaces/Evented.js.map +0 -1
- package/build/dist/Interfaces/Index.js.map +0 -1
- package/build/dist/Interfaces/LifecycleEvents.js +0 -51
- package/build/dist/Interfaces/LifecycleEvents.js.map +0 -1
- package/build/dist/Interfaces/Loadable.js +0 -2
- package/build/dist/Interfaces/Loadable.js.map +0 -1
- package/build/dist/Interfaces/PointerEventHandlers.js +0 -2
- package/build/dist/Interfaces/PointerEventHandlers.js.map +0 -1
- package/build/dist/Interfaces/Trait.js +0 -2
- package/build/dist/Interfaces/Trait.js.map +0 -1
- package/build/dist/Label.js +0 -262
- package/build/dist/Label.js.map +0 -1
- package/build/dist/Loader.js +0 -344
- package/build/dist/Loader.js.map +0 -1
- package/build/dist/Math/Index.js.map +0 -1
- package/build/dist/Math/Random.js +0 -239
- package/build/dist/Math/Random.js.map +0 -1
- package/build/dist/Math/global-coordinates.js +0 -30
- package/build/dist/Math/global-coordinates.js.map +0 -1
- package/build/dist/Math/line.js +0 -194
- package/build/dist/Math/line.js.map +0 -1
- package/build/dist/Math/matrix.js +0 -425
- package/build/dist/Math/matrix.js.map +0 -1
- package/build/dist/Math/projection.js +0 -24
- package/build/dist/Math/projection.js.map +0 -1
- package/build/dist/Math/ray.js +0 -52
- package/build/dist/Math/ray.js.map +0 -1
- package/build/dist/Math/vector-view.js +0 -25
- package/build/dist/Math/vector-view.js.map +0 -1
- package/build/dist/Math/vector.js +0 -326
- package/build/dist/Math/vector.js.map +0 -1
- package/build/dist/Particles.js +0 -436
- package/build/dist/Particles.js.map +0 -1
- package/build/dist/Polyfill.js +0 -56
- package/build/dist/Polyfill.js.map +0 -1
- package/build/dist/PostProcessing/ColorBlindCorrector.js +0 -193
- package/build/dist/PostProcessing/ColorBlindCorrector.js.map +0 -1
- package/build/dist/PostProcessing/Index.js.map +0 -1
- package/build/dist/PostProcessing/PostProcessor.js +0 -2
- package/build/dist/PostProcessing/PostProcessor.js.map +0 -1
- package/build/dist/Promises.js +0 -205
- package/build/dist/Promises.js.map +0 -1
- package/build/dist/Resources/Gif.js +0 -490
- package/build/dist/Resources/Gif.js.map +0 -1
- package/build/dist/Resources/Index.js.map +0 -1
- package/build/dist/Resources/Resource.js +0 -74
- package/build/dist/Resources/Resource.js.map +0 -1
- package/build/dist/Resources/Sound/AudioContext.js +0 -16
- package/build/dist/Resources/Sound/AudioContext.js.map +0 -1
- package/build/dist/Resources/Sound/Index.js.map +0 -1
- package/build/dist/Resources/Sound/Sound.js +0 -257
- package/build/dist/Resources/Sound/Sound.js.map +0 -1
- package/build/dist/Resources/Sound/WebAudioInstance.js +0 -160
- package/build/dist/Resources/Sound/WebAudioInstance.js.map +0 -1
- package/build/dist/Scene.js +0 -443
- package/build/dist/Scene.js.map +0 -1
- package/build/dist/Screen.js +0 -611
- package/build/dist/Screen.js.map +0 -1
- package/build/dist/ScreenElement.js +0 -33
- package/build/dist/ScreenElement.js.map +0 -1
- package/build/dist/TileMap.js +0 -465
- package/build/dist/TileMap.js.map +0 -1
- package/build/dist/Timer.js +0 -198
- package/build/dist/Timer.js.map +0 -1
- package/build/dist/Traits/CapturePointer.js +0 -16
- package/build/dist/Traits/CapturePointer.js.map +0 -1
- package/build/dist/Traits/Index.js.map +0 -1
- package/build/dist/Traits/OffscreenCulling.js +0 -35
- package/build/dist/Traits/OffscreenCulling.js.map +0 -1
- package/build/dist/Trigger.js +0 -107
- package/build/dist/Trigger.js.map +0 -1
- package/build/dist/Util/Actors.js +0 -19
- package/build/dist/Util/Actors.js.map +0 -1
- package/build/dist/Util/Browser.js +0 -66
- package/build/dist/Util/Browser.js.map +0 -1
- package/build/dist/Util/CullingBox.js +0 -104
- package/build/dist/Util/CullingBox.js.map +0 -1
- package/build/dist/Util/Decorators.js +0 -78
- package/build/dist/Util/Decorators.js.map +0 -1
- package/build/dist/Util/Detector.js +0 -167
- package/build/dist/Util/Detector.js.map +0 -1
- package/build/dist/Util/DrawUtil.js +0 -115
- package/build/dist/Util/DrawUtil.js.map +0 -1
- package/build/dist/Util/EasingFunctions.js +0 -118
- package/build/dist/Util/EasingFunctions.js.map +0 -1
- package/build/dist/Util/Index.js.map +0 -1
- package/build/dist/Util/Log.js +0 -195
- package/build/dist/Util/Log.js.map +0 -1
- package/build/dist/Util/Observable.js +0 -60
- package/build/dist/Util/Observable.js.map +0 -1
- package/build/dist/Util/Pool.js +0 -72
- package/build/dist/Util/Pool.js.map +0 -1
- package/build/dist/Util/SortedList.js +0 -261
- package/build/dist/Util/SortedList.js.map +0 -1
- package/build/dist/Util/Sound.js +0 -22
- package/build/dist/Util/Sound.js.map +0 -1
- package/build/dist/Util/Util.js +0 -401
- package/build/dist/Util/Util.js.map +0 -1
- package/build/dist/Util/Watch.js +0 -67
- package/build/dist/Util/Watch.js.map +0 -1
- package/build/dist/Util/WebAudio.js +0 -62
- package/build/dist/Util/WebAudio.js.map +0 -1
- package/build/dist/index.js.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from '../Action';
|
|
3
|
+
export declare class Blink implements Action {
|
|
4
|
+
private _graphics;
|
|
5
|
+
private _timeVisible;
|
|
6
|
+
private _timeNotVisible;
|
|
7
|
+
private _elapsedTime;
|
|
8
|
+
private _totalTime;
|
|
9
|
+
private _duration;
|
|
10
|
+
private _stopped;
|
|
11
|
+
private _started;
|
|
12
|
+
constructor(entity: Entity, timeVisible: number, timeNotVisible: number, numBlinks?: number);
|
|
13
|
+
update(delta: number): void;
|
|
14
|
+
isComplete(): boolean;
|
|
15
|
+
stop(): void;
|
|
16
|
+
reset(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
export declare class CallMethod implements Action {
|
|
3
|
+
private _method;
|
|
4
|
+
private _hasBeenCalled;
|
|
5
|
+
constructor(method: () => any);
|
|
6
|
+
update(_delta: number): void;
|
|
7
|
+
isComplete(): boolean;
|
|
8
|
+
reset(): void;
|
|
9
|
+
stop(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
export declare class Delay implements Action {
|
|
3
|
+
private _elapsedTime;
|
|
4
|
+
private _delay;
|
|
5
|
+
private _started;
|
|
6
|
+
private _stopped;
|
|
7
|
+
constructor(delay: number);
|
|
8
|
+
update(delta: number): void;
|
|
9
|
+
isComplete(): boolean;
|
|
10
|
+
stop(): void;
|
|
11
|
+
reset(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from '../Action';
|
|
3
|
+
export declare class Die implements Action {
|
|
4
|
+
private _entity;
|
|
5
|
+
private _stopped;
|
|
6
|
+
constructor(entity: Entity);
|
|
7
|
+
update(_delta: number): void;
|
|
8
|
+
isComplete(): boolean;
|
|
9
|
+
stop(): void;
|
|
10
|
+
reset(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Actor } from '../../Actor';
|
|
3
|
+
import { Action } from '../Action';
|
|
4
|
+
export declare class EaseTo implements Action {
|
|
5
|
+
easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number;
|
|
6
|
+
private _tx;
|
|
7
|
+
private _motion;
|
|
8
|
+
private _currentLerpTime;
|
|
9
|
+
private _lerpDuration;
|
|
10
|
+
private _lerpStart;
|
|
11
|
+
private _lerpEnd;
|
|
12
|
+
private _initialized;
|
|
13
|
+
private _stopped;
|
|
14
|
+
private _distance;
|
|
15
|
+
constructor(entity: Entity, x: number, y: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number);
|
|
16
|
+
private _initialize;
|
|
17
|
+
update(delta: number): void;
|
|
18
|
+
isComplete(actor: Actor): boolean;
|
|
19
|
+
reset(): void;
|
|
20
|
+
stop(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from '../Action';
|
|
3
|
+
export declare class Fade implements Action {
|
|
4
|
+
private _graphics;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
private _endOpacity;
|
|
8
|
+
private _speed;
|
|
9
|
+
private _multiplier;
|
|
10
|
+
private _started;
|
|
11
|
+
private _stopped;
|
|
12
|
+
constructor(entity: Entity, endOpacity: number, speed: number);
|
|
13
|
+
update(delta: number): void;
|
|
14
|
+
isComplete(): boolean;
|
|
15
|
+
stop(): void;
|
|
16
|
+
reset(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from '../Action';
|
|
3
|
+
export declare class Follow implements Action {
|
|
4
|
+
private _tx;
|
|
5
|
+
private _motion;
|
|
6
|
+
private _followTx;
|
|
7
|
+
private _followMotion;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
private _current;
|
|
11
|
+
private _end;
|
|
12
|
+
private _dir;
|
|
13
|
+
private _speed;
|
|
14
|
+
private _maximumDistance;
|
|
15
|
+
private _distanceBetween;
|
|
16
|
+
private _started;
|
|
17
|
+
private _stopped;
|
|
18
|
+
constructor(entity: Entity, entityToFollow: Entity, followDistance?: number);
|
|
19
|
+
update(_delta: number): void;
|
|
20
|
+
stop(): void;
|
|
21
|
+
isComplete(): boolean;
|
|
22
|
+
reset(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from '../Action';
|
|
3
|
+
export declare class Meet implements Action {
|
|
4
|
+
private _tx;
|
|
5
|
+
private _motion;
|
|
6
|
+
private _meetTx;
|
|
7
|
+
private _meetMotion;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
private _current;
|
|
11
|
+
private _end;
|
|
12
|
+
private _dir;
|
|
13
|
+
private _speed;
|
|
14
|
+
private _distanceBetween;
|
|
15
|
+
private _started;
|
|
16
|
+
private _stopped;
|
|
17
|
+
private _speedWasSpecified;
|
|
18
|
+
constructor(actor: Entity, actorToMeet: Entity, speed?: number);
|
|
19
|
+
update(_delta: number): void;
|
|
20
|
+
isComplete(): boolean;
|
|
21
|
+
stop(): void;
|
|
22
|
+
reset(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from '../Action';
|
|
3
|
+
export declare class MoveBy implements Action {
|
|
4
|
+
private _tx;
|
|
5
|
+
private _motion;
|
|
6
|
+
private _entity;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
private _distance;
|
|
10
|
+
private _speed;
|
|
11
|
+
private _start;
|
|
12
|
+
private _offset;
|
|
13
|
+
private _end;
|
|
14
|
+
private _dir;
|
|
15
|
+
private _started;
|
|
16
|
+
private _stopped;
|
|
17
|
+
constructor(entity: Entity, offsetX: number, offsetY: number, speed: number);
|
|
18
|
+
update(_delta: number): void;
|
|
19
|
+
isComplete(entity: Entity): boolean;
|
|
20
|
+
stop(): void;
|
|
21
|
+
reset(): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from '../Action';
|
|
3
|
+
export declare class MoveTo implements Action {
|
|
4
|
+
entity: Entity;
|
|
5
|
+
private _tx;
|
|
6
|
+
private _motion;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
private _start;
|
|
10
|
+
private _end;
|
|
11
|
+
private _dir;
|
|
12
|
+
private _speed;
|
|
13
|
+
private _distance;
|
|
14
|
+
private _started;
|
|
15
|
+
private _stopped;
|
|
16
|
+
constructor(entity: Entity, destx: number, desty: number, speed: number);
|
|
17
|
+
update(_delta: number): void;
|
|
18
|
+
isComplete(entity: Entity): boolean;
|
|
19
|
+
stop(): void;
|
|
20
|
+
reset(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from '../Action';
|
|
3
|
+
import { ActionContext } from '../ActionContext';
|
|
4
|
+
export declare class Repeat implements Action {
|
|
5
|
+
private _actionQueue;
|
|
6
|
+
private _repeat;
|
|
7
|
+
private _originalRepeat;
|
|
8
|
+
private _stopped;
|
|
9
|
+
private _repeatContext;
|
|
10
|
+
private _repeatBuilder;
|
|
11
|
+
constructor(entity: Entity, repeatBuilder: (repeatContext: ActionContext) => any, repeat: number);
|
|
12
|
+
update(delta: number): void;
|
|
13
|
+
isComplete(): boolean;
|
|
14
|
+
stop(): void;
|
|
15
|
+
reset(): void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from '../Action';
|
|
3
|
+
import { ActionContext } from '../ActionContext';
|
|
4
|
+
/**
|
|
5
|
+
* RepeatForever Action implementation, it is recommended you use the fluent action
|
|
6
|
+
* context API.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
export declare class RepeatForever implements Action {
|
|
11
|
+
private _actionQueue;
|
|
12
|
+
private _stopped;
|
|
13
|
+
private _repeatContext;
|
|
14
|
+
private _repeatBuilder;
|
|
15
|
+
constructor(entity: Entity, repeatBuilder: (repeatContext: ActionContext) => any);
|
|
16
|
+
update(delta: number): void;
|
|
17
|
+
isComplete(): boolean;
|
|
18
|
+
stop(): void;
|
|
19
|
+
reset(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { RotationType } from '../RotationType';
|
|
3
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
4
|
+
export declare class RotateBy implements Action {
|
|
5
|
+
private _tx;
|
|
6
|
+
private _motion;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
private _start;
|
|
10
|
+
private _end;
|
|
11
|
+
private _speed;
|
|
12
|
+
private _offset;
|
|
13
|
+
private _rotationType;
|
|
14
|
+
private _direction;
|
|
15
|
+
private _distance;
|
|
16
|
+
private _shortDistance;
|
|
17
|
+
private _longDistance;
|
|
18
|
+
private _shortestPathIsPositive;
|
|
19
|
+
private _currentNonCannonAngle;
|
|
20
|
+
private _started;
|
|
21
|
+
private _stopped;
|
|
22
|
+
constructor(entity: Entity, angleRadiansOffset: number, speed: number, rotationType?: RotationType);
|
|
23
|
+
update(_delta: number): void;
|
|
24
|
+
isComplete(): boolean;
|
|
25
|
+
stop(): void;
|
|
26
|
+
reset(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { RotationType } from '../RotationType';
|
|
3
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
4
|
+
export declare class RotateTo implements Action {
|
|
5
|
+
private _tx;
|
|
6
|
+
private _motion;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
private _start;
|
|
10
|
+
private _end;
|
|
11
|
+
private _speed;
|
|
12
|
+
private _rotationType;
|
|
13
|
+
private _direction;
|
|
14
|
+
private _distance;
|
|
15
|
+
private _shortDistance;
|
|
16
|
+
private _longDistance;
|
|
17
|
+
private _shortestPathIsPositive;
|
|
18
|
+
private _currentNonCannonAngle;
|
|
19
|
+
private _started;
|
|
20
|
+
private _stopped;
|
|
21
|
+
constructor(entity: Entity, angleRadians: number, speed: number, rotationType?: RotationType);
|
|
22
|
+
update(_delta: number): void;
|
|
23
|
+
isComplete(): boolean;
|
|
24
|
+
stop(): void;
|
|
25
|
+
reset(): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from '../Action';
|
|
3
|
+
export declare class ScaleBy implements Action {
|
|
4
|
+
private _tx;
|
|
5
|
+
private _motion;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
private _startScale;
|
|
9
|
+
private _endScale;
|
|
10
|
+
private _offset;
|
|
11
|
+
private _distanceX;
|
|
12
|
+
private _distanceY;
|
|
13
|
+
private _directionX;
|
|
14
|
+
private _directionY;
|
|
15
|
+
private _started;
|
|
16
|
+
private _stopped;
|
|
17
|
+
private _speedX;
|
|
18
|
+
private _speedY;
|
|
19
|
+
constructor(entity: Entity, scaleOffsetX: number, scaleOffsetY: number, speed: number);
|
|
20
|
+
update(_delta: number): void;
|
|
21
|
+
isComplete(): boolean;
|
|
22
|
+
stop(): void;
|
|
23
|
+
reset(): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Action } from '../Action';
|
|
2
|
+
import { Entity } from '../../EntityComponentSystem/Entity';
|
|
3
|
+
export declare class ScaleTo implements Action {
|
|
4
|
+
private _tx;
|
|
5
|
+
private _motion;
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
private _startX;
|
|
9
|
+
private _startY;
|
|
10
|
+
private _endX;
|
|
11
|
+
private _endY;
|
|
12
|
+
private _speedX;
|
|
13
|
+
private _speedY;
|
|
14
|
+
private _distanceX;
|
|
15
|
+
private _distanceY;
|
|
16
|
+
private _started;
|
|
17
|
+
private _stopped;
|
|
18
|
+
constructor(entity: Entity, scaleX: number, scaleY: number, speedX: number, speedY: number);
|
|
19
|
+
update(_delta: number): void;
|
|
20
|
+
isComplete(): boolean;
|
|
21
|
+
stop(): void;
|
|
22
|
+
reset(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Entity } from '../EntityComponentSystem/Entity';
|
|
2
|
+
/**
|
|
3
|
+
* Used for implementing actions for the [[ActionContext|Action API]].
|
|
4
|
+
*/
|
|
5
|
+
export interface Action {
|
|
6
|
+
update(delta: number): void;
|
|
7
|
+
isComplete(entity: Entity): boolean;
|
|
8
|
+
reset(): void;
|
|
9
|
+
stop(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { RotationType } from './RotationType';
|
|
2
|
+
import { EasingFunction } from '../Util/EasingFunctions';
|
|
3
|
+
import { ActionQueue } from './ActionQueue';
|
|
4
|
+
import { Vector } from '../Math/vector';
|
|
5
|
+
import { Entity } from '../EntityComponentSystem/Entity';
|
|
6
|
+
/**
|
|
7
|
+
* The fluent Action API allows you to perform "actions" on
|
|
8
|
+
* [[Actor|Actors]] such as following, moving, rotating, and
|
|
9
|
+
* more. You can implement your own actions by implementing
|
|
10
|
+
* the [[Action]] interface.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ActionContext {
|
|
13
|
+
private _entity;
|
|
14
|
+
private _queue;
|
|
15
|
+
constructor(entity: Entity);
|
|
16
|
+
getQueue(): ActionQueue;
|
|
17
|
+
update(elapsedMs: number): void;
|
|
18
|
+
/**
|
|
19
|
+
* Clears all queued actions from the Actor
|
|
20
|
+
*/
|
|
21
|
+
clearActions(): void;
|
|
22
|
+
/**
|
|
23
|
+
* This method will move an actor to the specified `x` and `y` position over the
|
|
24
|
+
* specified duration using a given [[EasingFunctions]] and return back the actor. This
|
|
25
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
26
|
+
* @param pos The x,y vector location to move the actor to
|
|
27
|
+
* @param duration The time it should take the actor to move to the new location in milliseconds
|
|
28
|
+
* @param easingFcn Use [[EasingFunctions]] or a custom function to use to calculate position, Default is [[EasingFunctions.Linear]]
|
|
29
|
+
*/
|
|
30
|
+
easeTo(pos: Vector, duration: number, easingFcn?: EasingFunction): ActionContext;
|
|
31
|
+
/**
|
|
32
|
+
* This method will move an actor to the specified `x` and `y` position over the
|
|
33
|
+
* specified duration using a given [[EasingFunctions]] and return back the actor. This
|
|
34
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
35
|
+
* @param x The x location to move the actor to
|
|
36
|
+
* @param y The y location to move the actor to
|
|
37
|
+
* @param duration The time it should take the actor to move to the new location in milliseconds
|
|
38
|
+
* @param easingFcn Use [[EasingFunctions]] or a custom function to use to calculate position, Default is [[EasingFunctions.Linear]]
|
|
39
|
+
*/
|
|
40
|
+
easeTo(x: number, y: number, duration: number, easingFcn?: EasingFunction): ActionContext;
|
|
41
|
+
/**
|
|
42
|
+
* This method will move an actor to the specified x and y position at the
|
|
43
|
+
* speed specified (in pixels per second) and return back the actor. This
|
|
44
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
45
|
+
* @param pos The x,y vector location to move the actor to
|
|
46
|
+
* @param speed The speed in pixels per second to move
|
|
47
|
+
*/
|
|
48
|
+
moveTo(pos: Vector, speed: number): ActionContext;
|
|
49
|
+
/**
|
|
50
|
+
* This method will move an actor to the specified x and y position at the
|
|
51
|
+
* speed specified (in pixels per second) and return back the actor. This
|
|
52
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
53
|
+
* @param x The x location to move the actor to
|
|
54
|
+
* @param y The y location to move the actor to
|
|
55
|
+
* @param speed The speed in pixels per second to move
|
|
56
|
+
*/
|
|
57
|
+
moveTo(x: number, y: number, speed: number): ActionContext;
|
|
58
|
+
/**
|
|
59
|
+
* This method will move an actor by the specified x offset and y offset from its current position, at a certain speed.
|
|
60
|
+
* This method is part of the actor 'Action' fluent API allowing action chaining.
|
|
61
|
+
* @param xOffset The x offset to apply to this actor
|
|
62
|
+
* @param yOffset The y location to move the actor to
|
|
63
|
+
* @param speed The speed in pixels per second the actor should move
|
|
64
|
+
*/
|
|
65
|
+
moveBy(offset: Vector, speed: number): ActionContext;
|
|
66
|
+
moveBy(xOffset: number, yOffset: number, speed: number): ActionContext;
|
|
67
|
+
/**
|
|
68
|
+
* This method will rotate an actor to the specified angle at the speed
|
|
69
|
+
* specified (in radians per second) and return back the actor. This
|
|
70
|
+
* method is part of the actor 'Action' fluent API allowing action chaining.
|
|
71
|
+
* @param angleRadians The angle to rotate to in radians
|
|
72
|
+
* @param speed The angular velocity of the rotation specified in radians per second
|
|
73
|
+
* @param rotationType The [[RotationType]] to use for this rotation
|
|
74
|
+
*/
|
|
75
|
+
rotateTo(angleRadians: number, speed: number, rotationType?: RotationType): ActionContext;
|
|
76
|
+
/**
|
|
77
|
+
* This method will rotate an actor by the specified angle offset, from it's current rotation given a certain speed
|
|
78
|
+
* in radians/sec and return back the actor. This method is part
|
|
79
|
+
* of the actor 'Action' fluent API allowing action chaining.
|
|
80
|
+
* @param angleRadiansOffset The angle to rotate to in radians relative to the current rotation
|
|
81
|
+
* @param speed The speed in radians/sec the actor should rotate at
|
|
82
|
+
* @param rotationType The [[RotationType]] to use for this rotation, default is shortest path
|
|
83
|
+
*/
|
|
84
|
+
rotateBy(angleRadiansOffset: number, speed: number, rotationType?: RotationType): ActionContext;
|
|
85
|
+
/**
|
|
86
|
+
* This method will scale an actor to the specified size at the speed
|
|
87
|
+
* specified (in magnitude increase per second) and return back the
|
|
88
|
+
* actor. This method is part of the actor 'Action' fluent API allowing
|
|
89
|
+
* action chaining.
|
|
90
|
+
* @param size The scale to adjust the actor to over time
|
|
91
|
+
* @param speed The speed of scaling specified in magnitude increase per second
|
|
92
|
+
*/
|
|
93
|
+
scaleTo(size: Vector, speed: Vector): ActionContext;
|
|
94
|
+
/**
|
|
95
|
+
* This method will scale an actor to the specified size at the speed
|
|
96
|
+
* specified (in magnitude increase per second) and return back the
|
|
97
|
+
* actor. This method is part of the actor 'Action' fluent API allowing
|
|
98
|
+
* action chaining.
|
|
99
|
+
* @param sizeX The scaling factor to apply on X axis
|
|
100
|
+
* @param sizeY The scaling factor to apply on Y axis
|
|
101
|
+
* @param speedX The speed of scaling specified in magnitude increase per second on X axis
|
|
102
|
+
* @param speedY The speed of scaling specified in magnitude increase per second on Y axis
|
|
103
|
+
*/
|
|
104
|
+
scaleTo(sizeX: number, sizeY: number, speedX: number, speedY: number): ActionContext;
|
|
105
|
+
/**
|
|
106
|
+
* This method will scale an actor by an amount relative to the current scale at a certain speed in scale units/sec
|
|
107
|
+
* and return back the actor. This method is part of the
|
|
108
|
+
* actor 'Action' fluent API allowing action chaining.
|
|
109
|
+
* @param offset The scaling factor to apply to the actor
|
|
110
|
+
* @param speed The speed to scale at in scale units/sec
|
|
111
|
+
*/
|
|
112
|
+
scaleBy(offset: Vector, speed: number): ActionContext;
|
|
113
|
+
/**
|
|
114
|
+
* This method will scale an actor by an amount relative to the current scale at a certain speed in scale units/sec
|
|
115
|
+
* and return back the actor. This method is part of the
|
|
116
|
+
* actor 'Action' fluent API allowing action chaining.
|
|
117
|
+
* @param sizeOffsetX The scaling factor to apply on X axis
|
|
118
|
+
* @param sizeOffsetY The scaling factor to apply on Y axis
|
|
119
|
+
* @param speed The speed to scale at in scale units/sec
|
|
120
|
+
*/
|
|
121
|
+
scaleBy(sizeOffsetX: number, sizeOffsetY: number, speed: number): ActionContext;
|
|
122
|
+
/**
|
|
123
|
+
* This method will cause an actor to blink (become visible and not
|
|
124
|
+
* visible). Optionally, you may specify the number of blinks. Specify the amount of time
|
|
125
|
+
* the actor should be visible per blink, and the amount of time not visible.
|
|
126
|
+
* This method is part of the actor 'Action' fluent API allowing action chaining.
|
|
127
|
+
* @param timeVisible The amount of time to stay visible per blink in milliseconds
|
|
128
|
+
* @param timeNotVisible The amount of time to stay not visible per blink in milliseconds
|
|
129
|
+
* @param numBlinks The number of times to blink
|
|
130
|
+
*/
|
|
131
|
+
blink(timeVisible: number, timeNotVisible: number, numBlinks?: number): ActionContext;
|
|
132
|
+
/**
|
|
133
|
+
* This method will cause an actor's opacity to change from its current value
|
|
134
|
+
* to the provided value by a specified time (in milliseconds). This method is
|
|
135
|
+
* part of the actor 'Action' fluent API allowing action chaining.
|
|
136
|
+
* @param opacity The ending opacity
|
|
137
|
+
* @param time The time it should take to fade the actor (in milliseconds)
|
|
138
|
+
*/
|
|
139
|
+
fade(opacity: number, time: number): ActionContext;
|
|
140
|
+
/**
|
|
141
|
+
* This method will delay the next action from executing for a certain
|
|
142
|
+
* amount of time (in milliseconds). This method is part of the actor
|
|
143
|
+
* 'Action' fluent API allowing action chaining.
|
|
144
|
+
* @param time The amount of time to delay the next action in the queue from executing in milliseconds
|
|
145
|
+
*/
|
|
146
|
+
delay(time: number): ActionContext;
|
|
147
|
+
/**
|
|
148
|
+
* This method will add an action to the queue that will remove the actor from the
|
|
149
|
+
* scene once it has completed its previous Any actions on the
|
|
150
|
+
* action queue after this action will not be executed.
|
|
151
|
+
*/
|
|
152
|
+
die(): ActionContext;
|
|
153
|
+
/**
|
|
154
|
+
* This method allows you to call an arbitrary method as the next action in the
|
|
155
|
+
* action queue. This is useful if you want to execute code in after a specific
|
|
156
|
+
* action, i.e An actor arrives at a destination after traversing a path
|
|
157
|
+
*/
|
|
158
|
+
callMethod(method: () => any): ActionContext;
|
|
159
|
+
/**
|
|
160
|
+
* This method will cause the actor to repeat all of the actions built in
|
|
161
|
+
* the `repeatBuilder` callback. If the number of repeats
|
|
162
|
+
* is not specified it will repeat forever. This method is part of
|
|
163
|
+
* the actor 'Action' fluent API allowing action chaining
|
|
164
|
+
*
|
|
165
|
+
* ```typescript
|
|
166
|
+
* // Move up in a zig-zag by repeated moveBy's
|
|
167
|
+
* actor.actions.repeat(repeatCtx => {
|
|
168
|
+
* repeatCtx.moveBy(10, 0, 10);
|
|
169
|
+
* repeatCtx.moveBy(0, 10, 10);
|
|
170
|
+
* }, 5);
|
|
171
|
+
* ```
|
|
172
|
+
*
|
|
173
|
+
* @param repeatBuilder The builder to specify the repeatable list of actions
|
|
174
|
+
* @param times The number of times to repeat all the previous actions in the action queue. If nothing is specified the actions
|
|
175
|
+
* will repeat forever
|
|
176
|
+
*/
|
|
177
|
+
repeat(repeatBuilder: (repeatContext: ActionContext) => any, times?: number): ActionContext;
|
|
178
|
+
/**
|
|
179
|
+
* This method will cause the actor to repeat all of the actions built in
|
|
180
|
+
* the `repeatBuilder` callback. If the number of repeats
|
|
181
|
+
* is not specified it will repeat forever. This method is part of
|
|
182
|
+
* the actor 'Action' fluent API allowing action chaining
|
|
183
|
+
*
|
|
184
|
+
* ```typescript
|
|
185
|
+
* // Move up in a zig-zag by repeated moveBy's
|
|
186
|
+
* actor.actions.repeat(repeatCtx => {
|
|
187
|
+
* repeatCtx.moveBy(10, 0, 10);
|
|
188
|
+
* repeatCtx.moveBy(0, 10, 10);
|
|
189
|
+
* }, 5);
|
|
190
|
+
* ```
|
|
191
|
+
*
|
|
192
|
+
* @param repeatBuilder The builder to specify the repeatable list of actions
|
|
193
|
+
*/
|
|
194
|
+
repeatForever(repeatBuilder: (repeatContext: ActionContext) => any): ActionContext;
|
|
195
|
+
/**
|
|
196
|
+
* This method will cause the entity to follow another at a specified distance
|
|
197
|
+
* @param entity The entity to follow
|
|
198
|
+
* @param followDistance The distance to maintain when following, if not specified the actor will follow at the current distance.
|
|
199
|
+
*/
|
|
200
|
+
follow(entity: Entity, followDistance?: number): ActionContext;
|
|
201
|
+
/**
|
|
202
|
+
* This method will cause the entity to move towards another until they
|
|
203
|
+
* collide "meet" at a specified speed.
|
|
204
|
+
* @param entity The entity to meet
|
|
205
|
+
* @param speed The speed in pixels per second to move, if not specified it will match the speed of the other actor
|
|
206
|
+
*/
|
|
207
|
+
meet(entity: Entity, speed?: number): ActionContext;
|
|
208
|
+
/**
|
|
209
|
+
* Returns a promise that resolves when the current action queue up to now
|
|
210
|
+
* is finished.
|
|
211
|
+
* @deprecated Use `toPromise()` will be removed in v0.26.0
|
|
212
|
+
*/
|
|
213
|
+
asPromise(): Promise<void>;
|
|
214
|
+
/**
|
|
215
|
+
* Returns a promise that resolves when the current action queue up to now
|
|
216
|
+
* is finished.
|
|
217
|
+
*/
|
|
218
|
+
toPromise(): Promise<void>;
|
|
219
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Entity } from '../EntityComponentSystem/Entity';
|
|
2
|
+
import { Action } from './Action';
|
|
3
|
+
/**
|
|
4
|
+
* Action Queues represent an ordered sequence of actions
|
|
5
|
+
*
|
|
6
|
+
* Action queues are part of the [[ActionContext|Action API]] and
|
|
7
|
+
* store the list of actions to be executed for an [[Actor]].
|
|
8
|
+
*
|
|
9
|
+
* Actors implement [[Actor.actions]] which can be manipulated by
|
|
10
|
+
* advanced users to adjust the actions currently being executed in the
|
|
11
|
+
* queue.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ActionQueue {
|
|
14
|
+
private _entity;
|
|
15
|
+
private _actions;
|
|
16
|
+
private _currentAction;
|
|
17
|
+
private _completedActions;
|
|
18
|
+
constructor(entity: Entity);
|
|
19
|
+
/**
|
|
20
|
+
* Add an action to the sequence
|
|
21
|
+
* @param action
|
|
22
|
+
*/
|
|
23
|
+
add(action: Action): void;
|
|
24
|
+
/**
|
|
25
|
+
* Remove an action by reference from the sequence
|
|
26
|
+
* @param action
|
|
27
|
+
*/
|
|
28
|
+
remove(action: Action): void;
|
|
29
|
+
/**
|
|
30
|
+
* Removes all actions from this sequence
|
|
31
|
+
*/
|
|
32
|
+
clearActions(): void;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @returns The total list of actions in this sequence complete or not
|
|
36
|
+
*/
|
|
37
|
+
getActions(): Action[];
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @returns `true` if there are more actions to process in the sequence
|
|
41
|
+
*/
|
|
42
|
+
hasNext(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @returns `true` if the current sequence of actions is done
|
|
45
|
+
*/
|
|
46
|
+
isComplete(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Resets the sequence of actions, this is used to restart a sequence from the beginning
|
|
49
|
+
*/
|
|
50
|
+
reset(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Update the queue which updates actions and handles completing actions
|
|
53
|
+
* @param elapsedMs
|
|
54
|
+
*/
|
|
55
|
+
update(elapsedMs: number): void;
|
|
56
|
+
}
|