45 lines
734 B
Plaintext
45 lines
734 B
Plaintext
#ifndef _CEVENT_HPP_
|
|
#define _CEVENT_HPP_
|
|
|
|
/*** SDL Header Files ***/
|
|
#include <SDL.h>
|
|
|
|
/*** DLL Header File ***/
|
|
#include "dllExport.h"
|
|
|
|
namespace EventEngine {
|
|
/* Singleton */
|
|
class EXPORT_FROM_MYDLL cEvent
|
|
{
|
|
private:
|
|
cEvent();
|
|
~cEvent();
|
|
|
|
public:
|
|
static cEvent& Inst();
|
|
static void Delete();
|
|
|
|
//Functions
|
|
const bool Initialize() const;
|
|
|
|
const bool Setup();
|
|
void CleanUp();
|
|
|
|
/* Checks for Events */
|
|
void CheckEvents();
|
|
|
|
|
|
///Sets
|
|
|
|
///Gets
|
|
/* Gets return true if Event was initialized */
|
|
const bool IsInit() const;
|
|
|
|
private:
|
|
SDL_Event m_event;
|
|
|
|
static cEvent* sp_inst;// = nullptr
|
|
};/// END CLASS DEFINITION cEvent
|
|
}/// END NAMESPACE DEFINITION EventEngine
|
|
#endif/// END IFNDEF _CEVENT_HPP_
|