You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
857 B
C
32 lines
857 B
C
|
4 years ago
|
/******************************************************************************
|
||
|
|
* File - iRunMode.h
|
||
|
|
* Author - Joey Pollack
|
||
|
|
* Date - 2021/09/15 (y/m/d)
|
||
|
|
* Mod Date - 2021/09/15 (y/m/d)
|
||
|
|
* Description - The interface that run mode classes must implement
|
||
|
|
******************************************************************************/
|
||
|
|
|
||
|
|
#ifndef RUN_MODE_H_
|
||
|
|
#define RUN_MODE_H_
|
||
|
|
|
||
|
|
#include <utils/opRes.h>
|
||
|
|
#include <input/inputManager.h>
|
||
|
|
#include <input/keyboard.h>
|
||
|
|
|
||
|
|
namespace lunarium
|
||
|
|
{
|
||
|
|
class iRunMode
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
virtual OpRes Initialize() = 0;
|
||
|
|
virtual void Shutdown() = 0;
|
||
|
|
virtual void OnTick(double delta) = 0;
|
||
|
|
virtual void OnRender() = 0;
|
||
|
|
|
||
|
|
public: // Optional Events
|
||
|
|
virtual void OnKeyPress(InputManager::KeyPress kp);
|
||
|
|
virtual void OnKeyRelease(Keyboard::Key k);
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif // RUN_MODE_H_
|