Kiwi.GameManager Class
The GameManager is used to maintain mulitple instances of Kiwi games within a single document.
Item Index
Properties
- _games static
- CAMERA static
- DEBUG_OFF static
- DEBUG_ON static
- DEVICE static
- ENTITY static
- GROUP static
- HUD_WIDGET static
- Log static
- RENDERER_AUTO static
- RENDERER_CANVAS static
- RENDERER_WEBGL static
- STATE static
- TARGET_BROWSER static
- TARGET_COCOON static
- TILE_LAYER static
- VERSION static
Methods
objType
()
String
public
The type of object that this is.
Returns:
"GameManager"
register
-
game
Used to register a new Game with this manager. Returns the new number of games that have been registered.
Parameters:
-
game
GameThe game you are wanting to register.
Returns:
{Number] The new number of games registered.
total
()
Number
public
Returns the total number of game that are currently registered with this GameManager.
Returns:
Total number of registered games.
Properties
_games
Game
private
static
A list of all of the games that are currently on this document.
CAMERA
Number
public
static
Contains a number that is used to identify objects that are a Camera.
Default: 4
DEBUG_OFF
Number
public
static
Contains the number that is used to turn the Debug options off.
Default: 1
DEBUG_ON
Number
public
static
Contains the number that is used to turn the Debug options on.
Default: 0
DEVICE
Device
public
static
Contains the Device class that is used to determine which features are supported by the users browser.
ENTITY
Number
public
static
Contains a number that is used to identify objects that are a Entity.
Default: 3
GROUP
Number
public
static
Contains a number that is used to identify objects that are a Group.
Default: 2
HUD_WIDGET
Number
public
static
Contains a number that is used to identify objects that are a HUD Widget.
Default: 5
RENDERER_AUTO
Number
public
static
A Static property that contains the number associated with RENDERER AUTODETECTION
Default: 2
RENDERER_CANVAS
Number
public
static
A Static property that contains the number associated with the CANVAS RENDERER.
Default: 0
RENDERER_WEBGL
Number
public
static
A Static property that contains the number associated with the WEBGL RENDERER.
Default: 1
STATE
Number
public
static
Contains a number that is used to identify objects that are a State.
Default: 0
TARGET_BROWSER
Number
public
static
Contains the number associated with the targetting of browsers.
Default: 0
TARGET_COCOON
Number
public
static
Contains the number associated with the targetting of CocoonJS.
Default: 1
TILE_LAYER
Number
public
static
Contains a number that is used to identify objects that are a TILE_LAYER.
Default: 6
VERSION
String
public
static
The version of Kiwi that is currently being used.