2016-04-12 23:07:23 -07:00
|
|
|
#ifndef __URDE_CGAMESTATE_HPP__
|
|
|
|
#define __URDE_CGAMESTATE_HPP__
|
2015-08-16 22:26:58 -07:00
|
|
|
|
2015-08-17 13:33:58 -07:00
|
|
|
#include <memory>
|
2015-08-19 19:52:07 -07:00
|
|
|
#include "CBasics.hpp"
|
2015-08-17 13:33:58 -07:00
|
|
|
#include "CPlayerState.hpp"
|
|
|
|
#include "CGameOptions.hpp"
|
2016-04-16 16:48:29 -07:00
|
|
|
#include "World/CWorldTransManager.hpp"
|
2015-08-17 13:33:58 -07:00
|
|
|
|
2016-03-04 15:04:53 -08:00
|
|
|
namespace urde
|
2015-08-17 15:05:00 -07:00
|
|
|
{
|
|
|
|
|
2015-08-16 22:26:58 -07:00
|
|
|
class CGameState
|
|
|
|
{
|
2015-08-19 19:52:07 -07:00
|
|
|
int m_stateFlag = -1;
|
2016-06-30 12:33:38 -07:00
|
|
|
CPlayerState x98_playerState;
|
2016-06-23 12:40:09 -07:00
|
|
|
CWorldTransManager x9c_transManager;
|
2015-08-19 19:52:07 -07:00
|
|
|
float m_gameTime = 0.0;
|
2015-08-17 13:33:58 -07:00
|
|
|
CGameOptions m_gameOpts;
|
2016-03-28 01:54:02 -07:00
|
|
|
double xa0_playTime;
|
2015-08-17 13:33:58 -07:00
|
|
|
public:
|
2016-07-21 13:02:53 -07:00
|
|
|
CGameState() = default;
|
2016-03-19 12:19:43 -07:00
|
|
|
CGameState(CBitStreamReader& stream);
|
2015-08-19 19:52:07 -07:00
|
|
|
void SetCurrentWorldId(unsigned int id, const std::string& name);
|
2016-06-23 12:40:09 -07:00
|
|
|
CWorldTransManager& WorldTransitionManager() {return x9c_transManager;}
|
2016-03-28 01:54:02 -07:00
|
|
|
void SetTotalPlayTime(float time);
|
2015-08-16 22:26:58 -07:00
|
|
|
};
|
|
|
|
|
2015-08-17 15:05:00 -07:00
|
|
|
}
|
|
|
|
|
2016-04-12 23:07:23 -07:00
|
|
|
#endif // __URDE_CGAMESTATE_HPP__
|