Drag[en]gine Script Module DragonScript Script API  1.0
Engine Class Reference

Drag[en]gine game engine. More...

Inheritance diagram for Engine:

Static Public Member Functions

Management
static float random ()
 Random number. More...
 
static float getElapsedTime ()
 Elapsed time since last update. More...
 
static void resetTimers ()
 Resets elapsed time timer. More...
 
static Game getGame ()
 Game object. More...
 
static void quit ()
 Quit game. More...
 
static int getFPSRate ()
 Averaged FPS rate. More...
 
static bool getEditMode ()
 Game is run in edit mode. More...
 
static int loadingResourceCount ()
 Number of loading resources. More...
 

Detailed Description

Drag[en]gine game engine.

This is a native class. This is a pure static class. The class can not be instantiated

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ getEditMode()

static bool getEditMode ( )
static

Game is run in edit mode.

This can be used by editor applications to allow in-editor game previews if supported.

§ getElapsedTime()

static float getElapsedTime ( )
static

Elapsed time since last update.

§ getFPSRate()

static int getFPSRate ( )
static

Averaged FPS rate.

§ getGame()

static Game getGame ( )
static

Game object.

§ loadingResourceCount()

static int loadingResourceCount ( )
static

Number of loading resources.

§ quit()

static void quit ( )
static

Quit game.

Cleans up the game object and shuts down the game engine.

§ random()

static float random ( )
static

Random number.

§ resetTimers()

static void resetTimers ( )
static

Resets elapsed time timer.

Calling this before entering the game for the first time avoids a single time large update value which can result in strange effects.


The documentation for this class was generated from the following file: