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