YAGE  v0.1.4.0
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
yage::System Class Referenceabstract

System interface for the different systems in the engine. More...

#include <system.h>

Public Member Functions

virtual ~System ()=0
 Virtual destructor to destroy all the objects that implement this properly. More...
 
virtual void init ()=0
 Initializes the system. More...
 
virtual void update (double dt)=0
 Updates the system at each interval using the time step. More...
 
virtual void destroy ()=0
 Destroy the system and the components that are contained in it. More...
 

Detailed Description

System interface for the different systems in the engine.

Constructor & Destructor Documentation

yage::System::~System ( )
inlinepure virtual

Virtual destructor to destroy all the objects that implement this properly.

Implement the default destructor, but leaving it as purely virtual in the definition of the abstract class.

This is so that the classes that implement the abstract class have to implement a desctructor, but at the same time, that there is no undefined behavious when the stack unwinds to the system and calls the system destructor.

Member Function Documentation

virtual void yage::System::destroy ( )
pure virtual

Destroy the system and the components that are contained in it.

virtual void yage::System::init ( )
pure virtual

Initializes the system.

Good practice to have this function instead using the constructor.

virtual void yage::System::update ( double  dt)
pure virtual

Updates the system at each interval using the time step.

Parameters
dtThe time difference between the previous frame and the current one.

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