ddnet/src/game/client/components/race_demo.h

39 lines
663 B
C
Raw Normal View History

/* (c) Redix and Sushi */
#ifndef GAME_CLIENT_COMPONENTS_RACE_DEMO_H
#define GAME_CLIENT_COMPONENTS_RACE_DEMO_H
#include <game/client/component.h>
class CRaceDemo : public CComponent
{
enum
{
RACE_NONE = 0,
RACE_IDLE,
RACE_PREPARE,
RACE_STARTED,
RACE_FINISHED,
};
2017-02-21 16:10:08 +00:00
2017-09-09 21:10:42 +00:00
int m_RaceState;
int m_RaceStartTick;
2017-09-09 21:10:42 +00:00
int m_RecordStopTick;
int m_Time;
void StopRecord(int Time = -1);
bool CheckDemo(int Time) const;
public:
bool m_IsSolo;
CRaceDemo();
2017-02-21 16:10:08 +00:00
virtual void OnReset();
virtual void OnStateChange(int NewState, int OldState);
virtual void OnRender();
virtual void OnMessage(int MsgType, void *pRawMsg);
virtual void OnMapLoad();
};
#endif