Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/Game.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
const CStr CGame::EventNameSimulationUpdate = "SimulationUpdate"; | const CStr CGame::EventNameSimulationUpdate = "SimulationUpdate"; | ||||
/** | /** | ||||
* Constructor | * Constructor | ||||
* | * | ||||
**/ | **/ | ||||
CGame::CGame(bool replayLog): | CGame::CGame(bool replayLog): | ||||
m_World(new CWorld(this)), | m_World(new CWorld(this)), | ||||
m_Simulation2(new CSimulation2(&m_World->GetUnitManager(), g_ScriptRuntime, m_World->GetTerrain())), | m_Simulation2(new CSimulation2(&m_World->GetUnitManager(), g_ScriptContext, m_World->GetTerrain())), | ||||
m_GameView(CRenderer::IsInitialised() ? new CGameView(this) : nullptr), | m_GameView(CRenderer::IsInitialised() ? new CGameView(this) : nullptr), | ||||
m_GameStarted(false), | m_GameStarted(false), | ||||
m_Paused(false), | m_Paused(false), | ||||
m_SimRate(1.0f), | m_SimRate(1.0f), | ||||
m_PlayerID(-1), | m_PlayerID(-1), | ||||
m_ViewedPlayerID(-1), | m_ViewedPlayerID(-1), | ||||
m_IsSavedGame(false), | m_IsSavedGame(false), | ||||
m_IsVisualReplay(false), | m_IsVisualReplay(false), | ||||
▲ Show 20 Lines • Show All 391 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator