Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/Game.cpp
Show First 20 Lines • Show All 63 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_ScriptContext, m_World->GetTerrain())), | m_Simulation2(new CSimulation2(&m_World->GetUnitManager(), g_ScriptContext, &m_World->GetTerrain())), | ||||
// TODO: we need to remove that global dependency. Maybe the game view | // TODO: we need to remove that global dependency. Maybe the game view | ||||
// should be created outside only if needed. | // should be created outside only if needed. | ||||
m_GameView(CRenderer::IsInitialised() ? new CGameView(g_VideoMode.GetBackendDevice(), this) : nullptr), | m_GameView(CRenderer::IsInitialised() ? new CGameView(g_VideoMode.GetBackendDevice(), 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), | ||||
▲ Show 20 Lines • Show All 397 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator