phaser/Phaser/gameobjects/IGameObject.ts
2013-08-08 19:16:47 +01:00

84 lines
No EOL
1.7 KiB
TypeScript

/// <reference path="../_definitions.ts" />
module Phaser {
export interface IGameObject {
/**
* Reference to the main game object
*/
game: Phaser.Game;
/**
* The type of game object.
*/
type: number;
/**
* The ID of the Group this Sprite belongs to.
*/
group: Phaser.Group;
/**
* The name of the Game Object. Typically not set by Phaser, but extremely useful for debugging / logic.
*/
name: string;
/**
* x value of the object.
*/
x: number;
/**
* y value of the object.
*/
y: number;
/**
* z-index value of the object.
*/
z: number;
/**
* Controls if both <code>update</code> and render are called by the core game loop.
*/
exists: boolean;
/**
* Controls if <code>update()</code> is automatically called by the core game loop.
*/
active: boolean;
/**
* Controls if this is rendered or skipped during the core game loop.
*/
visible: boolean;
/**
* The animation manager component
*/
animations: Phaser.Components.AnimationManager;
/**
* Associated events
*/
events: Phaser.Components.Events;
/**
* The input component
*/
input: Phaser.Components.InputHandler;
/**
* The texture used to render.
*/
texture: Phaser.Display.Texture;
/**
* The transform component.
*/
transform: Phaser.Components.TransformManager;
}
}