2016-09-16 23:40:45 -07:00
|
|
|
#ifndef __URDE_IMAIN_HPP__
|
|
|
|
#define __URDE_IMAIN_HPP__
|
2018-10-06 19:59:17 -07:00
|
|
|
#include "boo/boo.hpp"
|
|
|
|
#include "boo/audiodev/IAudioVoiceEngine.hpp"
|
|
|
|
#include "hecl/Runtime.hpp"
|
|
|
|
#include "amuse/amuse.hpp"
|
2016-09-16 23:40:45 -07:00
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
|
2018-01-15 08:00:20 -08:00
|
|
|
namespace hecl
|
|
|
|
{
|
|
|
|
class CVarManager;
|
2018-04-26 14:12:20 -07:00
|
|
|
class Console;
|
2018-01-15 08:00:20 -08:00
|
|
|
}
|
|
|
|
|
2016-09-16 23:40:45 -07:00
|
|
|
namespace urde
|
|
|
|
{
|
2018-10-06 19:59:17 -07:00
|
|
|
class CStopwatch;
|
2016-09-16 23:40:45 -07:00
|
|
|
enum class EGameplayResult
|
|
|
|
{
|
|
|
|
None,
|
|
|
|
Win,
|
|
|
|
Lose,
|
|
|
|
Playing
|
|
|
|
};
|
|
|
|
|
2017-01-16 17:23:19 -08:00
|
|
|
enum class EFlowState
|
|
|
|
{
|
2017-03-30 15:36:18 -07:00
|
|
|
None,
|
|
|
|
WinBad,
|
|
|
|
WinGood,
|
|
|
|
WinBest,
|
|
|
|
LoseGame,
|
|
|
|
Default,
|
|
|
|
StateSetter,
|
2017-01-16 17:23:19 -08:00
|
|
|
};
|
|
|
|
|
2016-09-16 23:40:45 -07:00
|
|
|
class IMain
|
|
|
|
{
|
|
|
|
public:
|
2017-01-16 17:23:19 -08:00
|
|
|
virtual ~IMain() = default;
|
2016-09-16 23:40:45 -07:00
|
|
|
virtual void Init(const hecl::Runtime::FileStoreManager& storeMgr,
|
2018-01-15 08:00:20 -08:00
|
|
|
hecl::CVarManager* cvarMgr,
|
2017-02-09 01:23:17 -08:00
|
|
|
boo::IWindow* window,
|
|
|
|
boo::IAudioVoiceEngine* voiceEngine,
|
|
|
|
amuse::IBackendVoiceAllocator& backend)=0;
|
2016-09-16 23:40:45 -07:00
|
|
|
virtual void Draw()=0;
|
|
|
|
virtual bool Proc()=0;
|
|
|
|
virtual void Shutdown()=0;
|
2017-10-16 22:51:53 -07:00
|
|
|
virtual boo::IWindow* GetMainWindow() const= 0;
|
2017-11-26 21:06:53 -08:00
|
|
|
virtual EFlowState GetFlowState() const = 0;
|
2017-08-08 15:12:14 -07:00
|
|
|
virtual void SetFlowState(EFlowState) = 0;
|
2017-08-12 22:26:14 -07:00
|
|
|
virtual size_t GetExpectedIdSize() const = 0;
|
2017-10-16 22:51:53 -07:00
|
|
|
virtual void WarmupShaders() = 0;
|
2018-04-26 14:12:20 -07:00
|
|
|
virtual hecl::Console* Console() const = 0;
|
2016-09-16 23:40:45 -07:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __URDE_IMAIN_HPP__
|