2016-02-13 09:02:47 +00:00
|
|
|
#ifndef __PSHAG_CGAMESTATE_HPP__
|
|
|
|
#define __PSHAG_CGAMESTATE_HPP__
|
2015-08-17 05:26:58 +00:00
|
|
|
|
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
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-17 22:05:00 +00:00
|
|
|
{
|
|
|
|
|
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() {}
|
2016-03-19 19:19:43 +00:00
|
|
|
CGameState(CBitStreamReader& stream);
|
2015-08-20 02:52:07 +00:00
|
|
|
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 22:05:00 +00:00
|
|
|
}
|
|
|
|
|
2016-02-13 09:02:47 +00:00
|
|
|
#endif // __PSHAG_CGAMESTATE_HPP__
|