2018-07-06 14:11:38 +00:00
|
|
|
#ifndef GAME_CLIENT_RACE_H
|
|
|
|
#define GAME_CLIENT_RACE_H
|
2017-08-30 19:44:27 +00:00
|
|
|
|
|
|
|
#include <base/system.h>
|
2017-09-09 18:28:38 +00:00
|
|
|
#include <base/vmath.h>
|
2017-08-30 19:44:27 +00:00
|
|
|
|
|
|
|
class CRaceHelper
|
|
|
|
{
|
|
|
|
public:
|
2017-09-09 18:54:49 +00:00
|
|
|
static int ms_aFlagIndex[2];
|
|
|
|
|
2017-08-30 22:43:46 +00:00
|
|
|
// these functions return the time in milliseconds, time -1 is invalid
|
2017-08-30 22:08:54 +00:00
|
|
|
static int TimeFromSecondsStr(const char *pStr); // x.xxx
|
2017-09-09 18:28:38 +00:00
|
|
|
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)
|
|
|
|
|
2017-09-09 18:54:49 +00:00
|
|
|
static bool IsStart(class CGameClient *pClient, vec2 Prev, vec2 Pos);
|
2017-08-30 19:44:27 +00:00
|
|
|
};
|
|
|
|
|
2018-07-06 14:11:38 +00:00
|
|
|
#endif // GAME_CLIENT_RACE_H
|