mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
21 lines
608 B
C++
21 lines
608 B
C++
#ifndef GAME_CLIENT_RACE_H
|
|
#define GAME_CLIENT_RACE_H
|
|
|
|
#include <base/system.h>
|
|
#include <base/vmath.h>
|
|
|
|
class CRaceHelper
|
|
{
|
|
public:
|
|
static int ms_aFlagIndex[2];
|
|
|
|
// these functions return the time in milliseconds, time -1 is invalid
|
|
static int TimeFromSecondsStr(const char *pStr); // x.xxx
|
|
static int TimeFromStr(const char *pStr); // x minute(s) x.xxx second(s)
|
|
static int TimeFromFinishMessage(const char *pStr, char *pNameBuf, int NameBufSize); // xxx finished in: x minute(s) x.xxx second(s)
|
|
|
|
static bool IsStart(class CGameClient *pClient, vec2 Prev, vec2 Pos);
|
|
};
|
|
|
|
#endif // GAME_CLIENT_RACE_H
|