hx3d  1
2D/3D Simple Game Framework
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
hx3d::Core Class Reference

Centralized framework management. More...

#include <core.hpp>

Public Types

Static Public Member Functions

static window::ApplicationApp ()
 Get the application instance. More...
 
static window::GameCurrentGame ()
 Get the game instance. More...
 
static AssetManagerAssets ()
 Get the asset manager. More...
 
static window::EventManagerEvents ()
 Get the event manager. More...
 
static net::NetNetwork ()
 Get the net instance. More...
 
static audio::AudioDeviceAudio ()
 Get the audio device instance. More...
 
static void initialize (window::Application *app, window::EventManager *events)
 Initialize the core system. More...
 
static void setGame (window::Game *game)
 Set the game. More...
 
static void shutdown ()
 Shutdown the core system.
 

Static Public Attributes

static SystemType CurrentSystem = Core::SystemType::Unknown
 Current system type.
 

Detailed Description

Centralized framework management.

Permit to manage assets, events and game management at one place.

Definition at line 50 of file core.hpp.

Member Enumeration Documentation

System types.

Enumerator
Android 

Android system.

iOS 

iPhone/iPad system

Linux 

Linux system.

Windows 

Windows system.

MacOS 

MacOS system.

Unknown 

Unknown system.

Definition at line 57 of file core.hpp.

Member Function Documentation

window::Application * hx3d::Core::App ( )
static

Get the application instance.

Returns
Application

Definition at line 78 of file core.cpp.

AssetManager * hx3d::Core::Assets ( )
static

Get the asset manager.

Returns
Asset manager

Definition at line 86 of file core.cpp.

audio::AudioDevice * hx3d::Core::Audio ( )
static

Get the audio device instance.

Returns
Audio

Definition at line 98 of file core.cpp.

window::Game * hx3d::Core::CurrentGame ( )
static

Get the game instance.

Returns
Game

Definition at line 82 of file core.cpp.

window::EventManager * hx3d::Core::Events ( )
static

Get the event manager.

Returns
Event manager

Definition at line 90 of file core.cpp.

void hx3d::Core::initialize ( window::Application app,
window::EventManager events 
)
static

Initialize the core system.

Parameters
appApplication (Ptr)
eventsEvents (Ptr)

Definition at line 104 of file core.cpp.

net::Net * hx3d::Core::Network ( )
static

Get the net instance.

Returns
Net

Definition at line 94 of file core.cpp.

void hx3d::Core::setGame ( window::Game game)
static

Set the game.

Parameters
gameGame (Ptr)

Definition at line 110 of file core.cpp.


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