Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/system/TurnManager.h
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Returns whether Update(simFrameLength, ...) will process at least one new turn. | * Returns whether Update(simFrameLength, ...) will process at least one new turn. | ||||
* @param simFrameLength Length of the previous frame, in simulation seconds | * @param simFrameLength Length of the previous frame, in simulation seconds | ||||
*/ | */ | ||||
bool WillUpdate(float simFrameLength) const; | bool WillUpdate(float simFrameLength) const; | ||||
/** | /** | ||||
* 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 91 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator