GigaPasjans
Loading...
Searching...
No Matches
Phosphorus::IGame Class Referenceabstract

Represents serializable GameObjectRegistry with rendering, asset manager. More...

#include <IGame.h>

Inheritance diagram for Phosphorus::IGame:
Collaboration diagram for Phosphorus::IGame:

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
GameObjectGetGameObject (const String &identifier)
 Find GameObject with given name.
 
void Clear ()
 Deletes all GameObject from registry.
 
GameObjectGetGameObjectByUniqueId (const String &identifier)
 Find GameObject with unique id.
 
void RegisterGameObject (const String &name, GameObject *object)
 Registers given GameObject.
 

Public Attributes

GameObjectGameSettings
 

Protected Attributes

GameOptions m_Options
 Game options determined by GameBootstrapper.
 
Andromenda::Surfacem_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
 

Detailed Description

Represents serializable GameObjectRegistry with rendering, asset manager.

Member Function Documentation

◆ GetProductInfo()

virtual ProductInfo Phosphorus::IGame::GetProductInfo ( )
pure virtual

Returns product info by derived class.

Implemented in Game::Solitaire.

◆ OnRender()

virtual void Phosphorus::IGame::OnRender ( )
pure virtual

Event called when game is rerendered.

Implemented in Game::Solitaire.

◆ OnSurfaceCallback()

virtual void Phosphorus::IGame::OnSurfaceCallback ( const String & id)
pure virtual

Event called when any component sends callback.

Implemented in Game::Solitaire.

◆ Run()

virtual void Phosphorus::IGame::Run ( )
pure virtual

Game entry point.

Implemented in Game::Solitaire.


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