phaser/Phaser/gameobjects/IGameObject.ts

64 lines
1.2 KiB
TypeScript
Raw Normal View History

2013-05-29 01:58:56 +00:00
/// <reference path="../Game.ts" />
module Phaser {
export interface IGameObject {
/**
* Reference to the main game object
*/
game: Game;
2013-05-29 11:24:25 +00:00
/**
* The type of game object.
2013-05-29 11:24:25 +00:00
*/
type: number;
2013-05-29 11:24:25 +00:00
/**
* The ID of the Group this Sprite belongs to.
2013-05-29 11:24:25 +00:00
*/
group: Group;
2013-05-29 11:24:25 +00:00
/**
* x value of the object.
2013-05-29 11:24:25 +00:00
*/
x: number;
2013-05-29 11:24:25 +00:00
2013-05-29 01:58:56 +00:00
/**
* y value of the object.
2013-05-29 01:58:56 +00:00
*/
y: number;
2013-05-29 01:58:56 +00:00
/**
* z-index value of the object.
2013-05-29 01:58:56 +00:00
*/
z: number;
2013-05-29 01:58:56 +00:00
/**
* Controls if both <code>update</code> and render are called by the core game loop.
*/
exists: bool;
/**
* Controls if <code>update()</code> is automatically called by the core game loop.
*/
active: bool;
/**
* Controls if this is rendered or skipped during the core game loop.
2013-05-29 01:58:56 +00:00
*/
visible: bool;
/**
* The texture used to render.
2013-05-29 01:58:56 +00:00
*/
texture: Phaser.Components.Texture;
/**
* The transform component.
2013-05-29 01:58:56 +00:00
*/
transform: Phaser.Components.Transform;
2013-05-29 01:58:56 +00:00
}
}