mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 15:12:18 +00:00
22 lines
739 B
TypeScript
22 lines
739 B
TypeScript
/// <reference path="../Game.d.ts" />
|
|
module Phaser {
|
|
class Tile {
|
|
constructor(game: Game, tilemap: Tilemap, index: number, width: number, height: number);
|
|
private _game;
|
|
public name: string;
|
|
public mass: number;
|
|
public width: number;
|
|
public height: number;
|
|
public allowCollisions: number;
|
|
public collideLeft: bool;
|
|
public collideRight: bool;
|
|
public collideUp: bool;
|
|
public collideDown: bool;
|
|
public tilemap: Tilemap;
|
|
public index: number;
|
|
public destroy(): void;
|
|
public setCollision(collision: number, resetCollisions: bool): void;
|
|
public resetCollision(): void;
|
|
public toString(): string;
|
|
}
|
|
}
|