1 | #ifndef GAME_CLIENT_RACE_H |
2 | #define GAME_CLIENT_RACE_H |
3 | |
4 | #include <base/vmath.h> |
5 | |
6 | class CRaceHelper |
7 | { |
8 | public: |
9 | static int ms_aFlagIndex[2]; |
10 | |
11 | // these functions return the time in milliseconds, time -1 is invalid |
12 | static int TimeFromSecondsStr(const char *pStr); // x.xxx |
13 | static int TimeFromStr(const char *pStr); // x minute(s) x.xxx second(s) |
14 | static int TimeFromFinishMessage(const char *pStr, char *pNameBuf, int NameBufSize); // xxx finished in: x minute(s) x.xxx second(s) |
15 | |
16 | static bool IsStart(class CGameClient *pClient, vec2 Prev, vec2 Pos); |
17 | }; |
18 | |
19 | #endif // GAME_CLIENT_RACE_H |
20 | |