Merge pull request #2300 from zimpy/dev

Typescript definitions - fixed return types on some functions of Arcade.Body
This commit is contained in:
Richard Davey 2016-02-01 18:14:21 +02:00
commit 27654c01dc
2 changed files with 8 additions and 8 deletions

View file

@ -15758,13 +15758,13 @@ declare module Phaser {
* Returns the absolute delta x value.
* @return The absolute delta value.
*/
deltaAbsX(): void;
deltaAbsX(): number;
/**
* Returns the absolute delta y value.
* @return The absolute delta value.
*/
deltaAbsY(): void;
deltaAbsY(): number;
/**
* Removes this bodys reference to its parent sprite, freeing it up for gc.
@ -15784,13 +15784,13 @@ declare module Phaser {
* Returns true if the bottom of this Body is in contact with either the world bounds or a tile.
* @return True if in contact with either the world bounds or a tile.
*/
onFloor(): void;
onFloor(): boolean;
/**
* Returns true if either side of this Body is in contact with either the world bounds or a tile.
* @return True if in contact with either the world bounds or a tile.
*/
onWall(): void;
onWall(): boolean;
/**
* Internal method.

View file

@ -2785,12 +2785,12 @@ declare module Phaser {
deltaX(): number;
deltaY(): number;
deltaZ(): number;
deltaAbsX(): void;
deltaAbsY(): void;
deltaAbsX(): number;
deltaAbsY(): number;
destroy(): void;
hitTest(x: number, y: number): boolean;
onFloor(): void;
onWall(): void;
onFloor(): boolean;
onWall(): boolean;
preUpdate(): void;
postUpdate(): void;
render(context: any, body: Phaser.Physics.Arcade.Body, color?: string, filled?: boolean): void;