|
R-Type
R-Type project
|
Class of engine. More...
#include <Engine.hpp>
Public Member Functions | |
| KEngine (bool debug=false, std::string const &gameName="Game", std::string const &version="1.0.0", std::string const &company="Default Company") | |
| Construct a new KapEngine Engine. More... | |
| void | setMaxFps (int fps) |
| Fix max fps of game. More... | |
| void | run () |
| run your game | |
| void | stop () |
| stop your game (can be call by component) | |
| bool | isRunning () const |
| Check if game is running. More... | |
| bool | debugMode () const |
| check debug mode More... | |
| void | setDebugMod (bool b) |
| Set the debug mode. More... | |
| std::shared_ptr< Graphical::GraphicalLib > | getCurrentGraphicalLib () |
| Get the Current Graphical Lib. More... | |
| bool | isGraphicalLibExists (std::size_t const &index) const |
| Check if lib exists from it's id in engine. More... | |
| bool | isGraphicalLibExists (std::string const &name) const |
| Check graphical lib exists from it's name in engine. More... | |
| std::size_t | getCurrentGraphicalLibIndex () const |
| Get the Current Graphical Lib Index. More... | |
| std::string | getGameName () const |
| Get the Game Name. More... | |
| std::string | getGameVersion () const |
| Get the Game Version. More... | |
| std::string | getGameCompany () const |
| Get the Game Company name. More... | |
| std::shared_ptr< SceneManagement::SceneManager > | getSceneManager () const |
| Get the Scene Manager of game. More... | |
| std::shared_ptr< Prefabs::PrefabManager > | getPrefabManager () const |
| Get the Prefab Manager of game. More... | |
| Time::ETime | getElapsedTime () |
| Get the Elapsed Time since last internal clock restart. More... | |
| Events::EventManager & | getEventManager () |
| Get the Event Manager of game. More... | |
| void | setDeltaTime (float dTime) |
| Set the Delta Time of game more delta time increase more the game gonna be fast. more delta decrease, more the game gonna be slow. More... | |
| std::shared_ptr< Graphical::GraphicalLibManager > | getGraphicalLibManager () const |
| Get the Graphical Lib Manager. More... | |
| void | setScreenSize (float width, float heigth) |
| Set the Screen Size at the game beginning. More... | |
| void | setScreenSize (Tools::Vector2 size) |
| Set the Screen Size at the game beginning. More... | |
| Tools::Vector2 | getScreenSize () const |
| Get the Screen Size at the game beginning. More... | |
| float | getMaxFps () const |
| Get the Max Fps of game. More... | |
| bool | __canRunFixed () const |
| return if onFixedUpdate can be call More... | |
| std::shared_ptr< SceneManagement::SplashScreen > | getSplashScreen () const |
| Get the Splash Screen manager. More... | |
| void | setFixedTime (Time::ETime time) |
| Set the Fixed Time of engine fixed time is used to call onFixedUpdate() function of component -> this your internal clock. More... | |
| Time::ETime | getFixedTime () const |
| void | setIconGame (std::string const &iconPath) |
| Set the Icon path of your Game. More... | |
| std::string | getIconPath () const |
| Get the Icon Path of your game. More... | |
| void | setEngineThread (bool b) |
| Set if engine have to use threads. More... | |
| bool | isEngineThreaded () const |
| return if engine is threaded More... | |
| void | setTitle (std::string const &title) |
| Set the Title of game windows. More... | |
| void | displayFPS (bool b) |
| bool | isDisplayFPS () const |
Class of engine.
| KapEngine::KEngine::KEngine | ( | bool | debug = false, |
| std::string const & | gameName = "Game", |
||
| std::string const & | version = "1.0.0", |
||
| std::string const & | company = "Default Company" |
||
| ) |
Construct a new KapEngine Engine.
| debug | enable/disable debug mode |
| gameName | name of your game |
| version | version of your game |
| company | company name that developpe the game |
|
inline |
return if onFixedUpdate can be call
|
inline |
check debug mode
| true | if debug mode is enable |
| false | if debug mode is disable |
| std::shared_ptr< KapEngine::Graphical::GraphicalLib > KapEngine::KEngine::getCurrentGraphicalLib | ( | ) |
Get the Current Graphical Lib.
| std::size_t KapEngine::KEngine::getCurrentGraphicalLibIndex | ( | ) | const |
Get the Current Graphical Lib Index.
|
inline |
Get the Elapsed Time since last internal clock restart.
| KapEngine::Events::EventManager & KapEngine::KEngine::getEventManager | ( | ) |
Get the Event Manager of game.
|
inline |
Get the Game Company name.
|
inline |
Get the Game Name.
|
inline |
Get the Game Version.
|
inline |
Get the Graphical Lib Manager.
|
inline |
Get the Icon Path of your game.
|
inline |
Get the Max Fps of game.
|
inline |
Get the Prefab Manager of game.
|
inline |
Get the Scene Manager of game.
|
inline |
Get the Screen Size at the game beginning.
|
inline |
Get the Splash Screen manager.
|
inline |
return if engine is threaded
| bool KapEngine::KEngine::isGraphicalLibExists | ( | std::size_t const & | index | ) | const |
Check if lib exists from it's id in engine.
| index |
| bool KapEngine::KEngine::isGraphicalLibExists | ( | std::string const & | name | ) | const |
Check graphical lib exists from it's name in engine.
| name |
|
inline |
Check if game is running.
| true | if game is running |
| false | if game is not running |
|
inline |
Set the debug mode.
| b |
|
inline |
Set the Delta Time of game more delta time increase more the game gonna be fast. more delta decrease, more the game gonna be slow.
| dTime |
|
inline |
Set if engine have to use threads.
| b |
|
inline |
Set the Fixed Time of engine fixed time is used to call onFixedUpdate() function of component -> this your internal clock.
| time |
|
inline |
Set the Icon path of your Game.
| iconPath |
|
inline |
Fix max fps of game.
| fps | fps amount |
| void KapEngine::KEngine::setScreenSize | ( | float | width, |
| float | heigth | ||
| ) |
Set the Screen Size at the game beginning.
| width | |
| heigth |
| void KapEngine::KEngine::setScreenSize | ( | Tools::Vector2 | size | ) |
Set the Screen Size at the game beginning.
| size | (KapEngine::Tools::Vector2) |
|
inline |
Set the Title of game windows.
| title |