Changeset View
Changeset View
Standalone View
Standalone View
source/ps/Game.cpp
Show First 20 Lines • Show All 364 Lines • ▼ Show 20 Lines | int CGame::GetViewedPlayerID() | ||||
return m_ViewedPlayerID; | return m_ViewedPlayerID; | ||||
} | } | ||||
void CGame::SetViewedPlayerID(player_id_t playerID) | void CGame::SetViewedPlayerID(player_id_t playerID) | ||||
{ | { | ||||
m_ViewedPlayerID = playerID; | m_ViewedPlayerID = playerID; | ||||
} | } | ||||
const int CGame::SimTime() const | |||||
{ | |||||
return GetTurnManager()->GetCurrentTurn() * GetTurnManager()->GetCurrentTurnLength(); | |||||
} | |||||
void CGame::StartGame(JS::MutableHandleValue attribs, const std::string& savedState) | void CGame::StartGame(JS::MutableHandleValue attribs, const std::string& savedState) | ||||
{ | { | ||||
if (m_ReplayLogger) | if (m_ReplayLogger) | ||||
m_ReplayLogger->StartGame(attribs); | m_ReplayLogger->StartGame(attribs); | ||||
RegisterInit(attribs, savedState); | RegisterInit(attribs, savedState); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator