#include <kernel.h>
Public Member Functions | |
uint | getMilliTicks () |
bool | getInitSuccess () const |
ResourceManager * | getResourceManager () |
int | getRandomNumber (int min, int max) |
GraphicEngine * | getGfx () |
SoundEngine * | getSfx () |
InputEngine * | getInput () |
PackageManager * | getPackage () |
ScriptEngine * | getScript () |
MoviePlayer * | getFMV () |
void | sleep (uint msecs) const |
void | crash () const |
Static Public Member Functions | |
static Kernel * | getInstance () |
static void | deleteInstance () |
This is the main engine class
This class creates and manages all other engine components such as sound engine, graphics engine ... It is not necessary to release all the items individually, this is performed by the Kernel class.
uint Sword25::Kernel::getMilliTicks | ( | ) |
Returns the elapsed time since startup in milliseconds
|
inline |
Specifies whether the kernel was successfully initialized
|
inline |
Returns a pointer to the BS_ResourceManager
int Sword25::Kernel::getRandomNumber | ( | int | min, |
int | max | ||
) |
Returns a random number
Min | The minimum allowed value |
Max | The maximum allowed value |
GraphicEngine* Sword25::Kernel::getGfx | ( | ) |
Returns a pointer to the active Gfx Service, or NULL if no Gfx service is active
SoundEngine* Sword25::Kernel::getSfx | ( | ) |
Returns a pointer to the active Sfx Service, or NULL if no Sfx service is active
InputEngine* Sword25::Kernel::getInput | ( | ) |
Returns a pointer to the active input service, or NULL if no input service is active
PackageManager* Sword25::Kernel::getPackage | ( | ) |
Returns a pointer to the active package manager, or NULL if no manager is active
ScriptEngine* Sword25::Kernel::getScript | ( | ) |
Returns a pointer to the script engine, or NULL if it is not active
MoviePlayer* Sword25::Kernel::getFMV | ( | ) |
Returns a pointer to the movie player, or NULL if it is not active
void Sword25::Kernel::sleep | ( | uint | msecs | ) | const |
Pauses for the specified amount of time
Msecs | The amount of time in milliseconds |
|
inlinestatic |
Returns the singleton instance for the kernel
|
inlinestatic |
Destroys the kernel instance This method should only be called when the game is ended. No subsequent calls to any kernel methods should be done after calling this method.
|
inline |
Raises an error. This method is used in crashing testing.