metaforce/Runtime/CGameState.hpp

30 lines
655 B
C++
Raw Normal View History

2015-08-17 05:26:58 +00:00
#ifndef __RETRO_CGAMESTATE_HPP__
#define __RETRO_CGAMESTATE_HPP__
2015-08-17 20:33:58 +00:00
#include <memory>
2015-08-20 02:52:07 +00:00
#include "CBasics.hpp"
2015-08-17 20:33:58 +00:00
#include "CPlayerState.hpp"
#include "CGameOptions.hpp"
2015-08-20 02:52:07 +00:00
#include "CWorldTransManager.hpp"
2015-08-17 20:33:58 +00:00
namespace Retro
{
2015-08-17 05:26:58 +00:00
class CGameState
{
2015-08-20 02:52:07 +00:00
int m_stateFlag = -1;
2015-08-18 05:54:43 +00:00
TOneStatic<CPlayerState> m_playerState;
2015-08-20 02:52:07 +00:00
CWorldTransManager m_transManager;
float m_gameTime = 0.0;
2015-08-17 20:33:58 +00:00
CGameOptions m_gameOpts;
public:
2015-08-20 02:52:07 +00:00
CGameState() {}
CGameState(CInputStream& stream);
void SetCurrentWorldId(unsigned int id, const std::string& name);
CWorldTransManager& WorldTransitionManager() {return m_transManager;}
2015-08-17 05:26:58 +00:00
};
}
2015-08-17 05:26:58 +00:00
#endif // __RETRO_CGAMESTATE_HPP__