Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/system/TurnManager.h
Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | public: | ||||
void RewindTimeWarp(); | void RewindTimeWarp(); | ||||
void QuickSave(JS::HandleValue GUIMetadata); | void QuickSave(JS::HandleValue GUIMetadata); | ||||
void QuickLoad(); | void QuickLoad(); | ||||
u32 GetCurrentTurn() const { return m_CurrentTurn; } | u32 GetCurrentTurn() const { return m_CurrentTurn; } | ||||
/** | /** | ||||
* @returns the current turn length. | |||||
*/ | |||||
u32 GetCurrentTurnLength() const { return m_TurnLength; } | |||||
/** | |||||
* @return how many turns are ready to be computed. | * @return how many turns are ready to be computed. | ||||
* (used to detect players/observers that fall behind the live game. | * (used to detect players/observers that fall behind the live game. | ||||
*/ | */ | ||||
u32 GetPendingTurns() const { return m_ReadyTurn - m_CurrentTurn; } | u32 GetPendingTurns() const { return m_ReadyTurn - m_CurrentTurn; } | ||||
protected: | protected: | ||||
/** | /** | ||||
* Store a command to be executed at a given turn. | * Store a command to be executed at a given turn. | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator