metaforce/Runtime/CMainFlowBase.hpp

34 lines
755 B
C++
Raw Permalink Normal View History

2018-10-06 20:42:33 -07:00
#pragma once
2015-08-26 17:23:46 -07:00
#include "Runtime/CIOWin.hpp"
2015-08-26 17:23:46 -07:00
2021-04-10 01:42:06 -07:00
namespace metaforce {
2015-08-26 17:23:46 -07:00
enum class EClientFlowStates {
Unspecified = -1,
None = 0,
WinBad = 1,
WinGood = 2,
WinBest = 3,
LoseGame = 4,
Default = 5,
StateSetter = 6,
PreFrontEnd = 7,
FrontEnd = 8,
Game = 14,
GameExit = 15
};
2015-08-26 17:23:46 -07:00
2018-12-07 21:30:43 -08:00
class CMainFlowBase : public CIOWin {
2015-08-26 17:23:46 -07:00
protected:
2018-12-07 21:30:43 -08:00
EClientFlowStates x14_gameState = EClientFlowStates::Unspecified;
2015-08-26 17:23:46 -07:00
public:
explicit CMainFlowBase(const char* name) : CIOWin(name) {}
EMessageReturn OnMessage(const CArchitectureMessage& msg, CArchitectureQueue& queue) override;
2018-12-07 21:30:43 -08:00
virtual void AdvanceGameState(CArchitectureQueue& queue) = 0;
virtual void SetGameState(EClientFlowStates state, CArchitectureQueue& queue) = 0;
2015-08-26 17:23:46 -07:00
};
2021-04-10 01:42:06 -07:00
} // namespace metaforce