blob: 28082f087ac41934fed958d7446a1c6454791fd5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#pragma once
enum { SKIDMARK_LENGTH = 16 };
enum eSkidmarkType
{
SKIDMARK_NORMAL,
SKIDMARK_MUDDY,
SKIDMARK_SANDY,
SKIDMARK_BLOODY
};
class CSkidmark
{
public:
CVector m_pos[SKIDMARK_LENGTH];
float m_sideX[SKIDMARK_LENGTH];
float m_sideY[SKIDMARK_LENGTH];
uintptr m_id;
uint32 m_lastUpdate;
uint32 m_fadeStart;
uint32 m_fadeEnd;
uint32 m_type;
int16 m_last;
uint8 m_state;
bool m_wasUpdated;
};
class CSkidmarks
{
static CSkidmark aSkidmarks[NUMSKIDMARKS];
public:
static void Init(void);
static void Shutdown(void);
static void Clear(void);
static void Update(void);
static void Render(void);
static void RegisterOne(uintptr id, const CVector &pos, float fwdX, float fwdY, eSkidmarkType type, bool *isBloody);
static void RegisterOne(uintptr id, const CVector &pos, float fwdX, float fwdY, bool *isMuddy, bool *isBloody);
};
|