|
GigaPasjans
|
Represents serializable GameObjectRegistry with rendering, asset manager. More...
#include <IGame.h>


Public Member Functions | |
| IGame (GameOptions &options, Andromenda::Surface *surface) | |
| void | Register () |
| virtual ProductInfo | GetProductInfo ()=0 |
| Returns product info by derived class. | |
| virtual void | Run ()=0 |
| Game entry point. | |
| virtual void | OnSurfaceCallback (const String &id)=0 |
| Event called when any component sends callback. | |
| virtual void | OnRender ()=0 |
| Event called when game is rerendered. | |
Public Member Functions inherited from Phosphorus::GameObjectRegistry | |
| GameObject * | GetGameObject (const String &identifier) |
| Find GameObject with given name. | |
| void | Clear () |
| Deletes all GameObject from registry. | |
| GameObject * | GetGameObjectByUniqueId (const String &identifier) |
| Find GameObject with unique id. | |
| void | RegisterGameObject (const String &name, GameObject *object) |
| Registers given GameObject. | |
Public Attributes | |
| GameObject * | GameSettings |
Protected Attributes | |
| GameOptions | m_Options |
| Game options determined by GameBootstrapper. | |
| Andromenda::Surface * | m_Surface |
| Main game renderer. | |
| VfsManager | m_VfsManager |
| Main game asset manager. | |
Protected Attributes inherited from Phosphorus::GameObjectRegistry | |
| std::unordered_map< String, GameObject * > | m_GameObjects |
Friends | |
| class | GameSerializer |
| class | GameBootstrapper |
Additional Inherited Members | |
Protected Member Functions inherited from Phosphorus::GameObjectRegistry | |
| std::unordered_map< String, GameObject * > & | getMap () |
| const std::unordered_map< String, GameObject * > & | getMap () const |
Represents serializable GameObjectRegistry with rendering, asset manager.
|
pure virtual |
Returns product info by derived class.
Implemented in Game::Solitaire.
|
pure virtual |
Event called when game is rerendered.
Implemented in Game::Solitaire.
|
pure virtual |
Event called when any component sends callback.
Implemented in Game::Solitaire.
|
pure virtual |
Game entry point.
Implemented in Game::Solitaire.