Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/system/TurnManager.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Advance the simulation by as much as possible. Intended for catching up | * Advance the simulation by as much as possible. Intended for catching up | ||||
* over a small number of turns when rejoining a multiplayer match. | * over a small number of turns when rejoining a multiplayer match. | ||||
* Returns true if it advanced by at least one turn. | * Returns true if it advanced by at least one turn. | ||||
*/ | */ | ||||
bool UpdateFastForward(); | bool UpdateFastForward(); | ||||
/** | /** | ||||
* Returns the current turn length. | |||||
*/ | |||||
u32 GetLatestTurnLength() const; | |||||
/** | |||||
* Advance the graphics by a certain time. | * Advance the graphics by a certain time. | ||||
* @param simFrameLength Length of the previous frame, in simulation seconds | * @param simFrameLength Length of the previous frame, in simulation seconds | ||||
* @param realFrameLength Length of the previous frame, in real time seconds | * @param realFrameLength Length of the previous frame, in real time seconds | ||||
*/ | */ | ||||
void Interpolate(float simFrameLength, float realFrameLength); | void Interpolate(float simFrameLength, float realFrameLength); | ||||
/** | /** | ||||
* Called by networking code when a simulation message is received. | * Called by networking code when a simulation message is received. | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator