Meteor2D  dev internal
Meteor is a lightweight 2D game engine.
Loading...
Searching...
No Matches
meteor::MApplication Class Referenceabstract

Application acts as the entry-point to the game. More...

#include <Application.h>

Inheritance diagram for meteor::MApplication:

Public Member Functions

virtual std::string getName ()=0
 Gets name of application.
 
virtual void onStart ()=0
 Invoked when application starts.
 
virtual void onUpdate (float deltaTime)=0
 Invoked once per frame.
 
virtual void onQuit ()=0
 Invoked when application quits.
 
bool hasQuit ()
 
void quit ()
 Quits the application.
 
- Public Member Functions inherited from meteor::MEntity
virtual bool equals (MEntity *other)
 Checks equality between two entities.
 
std::string getName ()
 
void setName (std::string name)
 Sets name of entity.
 
virtual std::string toString ()
 Get this object as a string.
 

Additional Inherited Members

- Protected Attributes inherited from meteor::MEntity
std::string name
 

Detailed Description

Application acts as the entry-point to the game.

Member Function Documentation

◆ getName()

virtual std::string meteor::MApplication::getName ( )
pure virtual

Gets name of application.

Returns
Name of application as string.

◆ hasQuit()

bool meteor::MApplication::hasQuit ( )
inline
Returns
true if application has exited.

◆ onUpdate()

virtual void meteor::MApplication::onUpdate ( float deltaTime)
pure virtual

Invoked once per frame.

Parameters
deltaTimetime difference last and last-to-last frame.