YAGE  v0.1.4.0
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
system.h
Go to the documentation of this file.
1 
9 #ifndef YAGE_ENGINE_SYSTEM_H
10 #define YAGE_ENGINE_SYSTEM_H
11 
12 namespace yage
13 {
14 
18 class System
19 {
20 public:
25  virtual ~System() = 0;
26 
31  virtual void init() = 0;
32 
38  virtual void update(double dt) = 0;
39 };
40 
48 inline System::~System() {}
49 
50 } // namespace yage
51 
52 #endif
System interface for the different systems in the engine.
Definition: system.h:18
virtual void init()=0
Initializes the system.
virtual ~System()=0
Virtual destructor to destroy all the objects that implement this properly.
Definition: system.h:48
virtual void update(double dt)=0
Updates the system at each interval using the time step.