Impact Types

This commit is contained in:
Richard Davey 2019-05-09 12:34:05 +01:00
parent fbe2470f99
commit 490dd62f2b
9 changed files with 13 additions and 13 deletions

View file

@ -4,6 +4,6 @@
* *
* @property {string} [default] - The default physics system. It will be started for each scene. Phaser provides 'arcade', 'impact', and 'matter'. * @property {string} [default] - The default physics system. It will be started for each scene. Phaser provides 'arcade', 'impact', and 'matter'.
* @property {Phaser.Types.Physics.Arcade.ArcadeWorldConfig} [arcade] - Arcade Physics configuration. * @property {Phaser.Types.Physics.Arcade.ArcadeWorldConfig} [arcade] - Arcade Physics configuration.
* @property {Phaser.Physics.Impact.Types.WorldConfig} [impact] - Impact Physics configuration. * @property {Phaser.Types.Physics.Impact.WorldConfig} [impact] - Impact Physics configuration.
* @property {MatterWorldConfig} [matter] - Matter Physics configuration. * @property {MatterWorldConfig} [matter] - Matter Physics configuration.
*/ */

View file

@ -11,7 +11,7 @@ var TYPE = require('./TYPE');
var UpdateMotion = require('./UpdateMotion'); var UpdateMotion = require('./UpdateMotion');
/** /**
* @callback Phaser.Physics.Impact.Types.BodyUpdateCallback * @callback Phaser.Types.Physics.Impact.BodyUpdateCallback
* @since 3.0.0 * @since 3.0.0
* *
* @param {Phaser.Physics.Impact.Body} body - [description] * @param {Phaser.Physics.Impact.Body} body - [description]
@ -491,7 +491,7 @@ var Body = new Class({
* @method Phaser.Physics.Impact.Body#toJSON * @method Phaser.Physics.Impact.Body#toJSON
* @since 3.0.0 * @since 3.0.0
* *
* @return {Phaser.Physics.Impact.Types.JSONImpactBody} JSON representation of this body object. * @return {Phaser.Types.Physics.Impact.JSONImpactBody} JSON representation of this body object.
*/ */
toJSON: function () toJSON: function ()
{ {

View file

@ -28,7 +28,7 @@ var TYPE = require('./TYPE');
* @since 3.0.0 * @since 3.0.0
* *
* @param {Phaser.Scene} scene - The Scene to which this Impact World instance belongs. * @param {Phaser.Scene} scene - The Scene to which this Impact World instance belongs.
* @param {Phaser.Physics.Impact.Types.WorldConfig} config - [description] * @param {Phaser.Types.Physics.Impact.WorldConfig} config - [description]
*/ */
var World = new Class({ var World = new Class({
@ -141,7 +141,7 @@ var World = new Class({
* [description] * [description]
* *
* @name Phaser.Physics.Impact.World#defaults * @name Phaser.Physics.Impact.World#defaults
* @type {Phaser.Physics.Impact.Types.WorldDefaults} * @type {Phaser.Types.Physics.Impact.WorldDefaults}
* @since 3.0.0 * @since 3.0.0
*/ */
this.defaults = { this.defaults = {
@ -160,7 +160,7 @@ var World = new Class({
* An object containing the 4 wall bodies that bound the physics world. * An object containing the 4 wall bodies that bound the physics world.
* *
* @name Phaser.Physics.Impact.World#walls * @name Phaser.Physics.Impact.World#walls
* @type {Phaser.Physics.Impact.Types.WorldWalls} * @type {Phaser.Types.Physics.Impact.WorldWalls}
* @since 3.0.0 * @since 3.0.0
*/ */
this.walls = { left: null, right: null, top: null, bottom: null }; this.walls = { left: null, right: null, top: null, bottom: null };
@ -280,7 +280,7 @@ var World = new Class({
* @since 3.0.0 * @since 3.0.0
* *
* @param {(Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} tilemapLayer - The tilemap layer to use. * @param {(Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} tilemapLayer - The tilemap layer to use.
* @param {Phaser.Physics.Impact.Types.CollisionOptions} [options] - Options for controlling the mapping from tiles to slope IDs. * @param {Phaser.Types.Physics.Impact.CollisionOptions} [options] - Options for controlling the mapping from tiles to slope IDs.
* *
* @return {Phaser.Physics.Impact.CollisionMap} The newly created CollisionMap. * @return {Phaser.Physics.Impact.CollisionMap} The newly created CollisionMap.
*/ */

View file

@ -1,5 +1,5 @@
/** /**
* @typedef {object} Phaser.Physics.Impact.Types.CollisionOptions * @typedef {object} Phaser.Types.Physics.Impact.CollisionOptions
* @since 3.0.0 * @since 3.0.0
* *
* @property {string} [slopeTileProperty=null] - Slope IDs can be stored on tiles directly * @property {string} [slopeTileProperty=null] - Slope IDs can be stored on tiles directly

View file

@ -1,5 +1,5 @@
/** /**
* @typedef {object} Phaser.Physics.Impact.Types.JSONImpactBody * @typedef {object} Phaser.Types.Physics.Impact.JSONImpactBody
* @since 3.0.0 * @since 3.0.0
* *
* @property {string} name - [description] * @property {string} name - [description]

View file

@ -1,5 +1,5 @@
/** /**
* @typedef {object} Phaser.Physics.Impact.Types.WorldConfig * @typedef {object} Phaser.Types.Physics.Impact.WorldConfig
* @since 3.0.0 * @since 3.0.0
* *
* @property {number} [gravity=0] - Sets {@link Phaser.Physics.Impact.World#gravity} * @property {number} [gravity=0] - Sets {@link Phaser.Physics.Impact.World#gravity}

View file

@ -1,7 +1,7 @@
/** /**
* An object containing the 4 wall bodies that bound the physics world. * An object containing the 4 wall bodies that bound the physics world.
* *
* @typedef {object} Phaser.Physics.Impact.Types.WorldDefaults * @typedef {object} Phaser.Types.Physics.Impact.WorldDefaults
* @since 3.0.0 * @since 3.0.0
* *
* @property {boolean} debugShowBody - Whether the Body's boundary is drawn to the debug display. * @property {boolean} debugShowBody - Whether the Body's boundary is drawn to the debug display.

View file

@ -1,5 +1,5 @@
/** /**
* @typedef {object} Phaser.Physics.Impact.Types.WorldWalls * @typedef {object} Phaser.Types.Physics.Impact.WorldWalls
* @since 3.0.0 * @since 3.0.0
* *
* @property {?Phaser.Physics.Impact.Body} left - The left-side wall of the world bounds. * @property {?Phaser.Physics.Impact.Body} left - The left-side wall of the world bounds.

View file

@ -5,5 +5,5 @@
*/ */
/** /**
* @namespace Phaser.Physics.Impact.Types * @namespace Phaser.Types.Physics.Impact
*/ */