SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
SUNENGINEAttorney.h
1#ifndef SUNENGINEAttorney_H
2#define SUNENGINEAttorney_H
3
4#include "SUNENGINE.h"
5
14{
15public:
21 {
22 private:
23 friend class TimeManager;
24 friend class FreezeTime;
25
31 static float GetTime() { return SUNENGINE::GetTime(); }
32 };
33
39 {
40 private:
41 friend int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int);
42
48 static void Run() { SUNENGINE::Instance().RunSUNENGINE(); }
49 };
50};
51
52#endif
Provides access to the game loop related functions of SUNENGINE.
Definition SUNENGINEAttorney.h:21
static float GetTime()
Retrieves the current time from SUNENGINE.
Definition SUNENGINEAttorney.h:31
Provides access to the cleanup related functions of SUNENGINE.
Definition SUNENGINEAttorney.h:39
friend int WINAPI WinMain(_In_ HINSTANCE, _In_opt_ HINSTANCE, _In_ LPSTR, _In_ int)
Entry point for the application.
Definition main.cpp:19
static void Run()
Initializes the SUNENGINE instance.
Definition SUNENGINEAttorney.h:48
Provides controlled access to the SUNENGINE class for specific classes.
Definition SUNENGINEAttorney.h:14
static float GetTime()
Retrieves the current time in seconds.
Definition SUNENGINE.h:61