/
CNametags.h
56 lines (44 loc) · 1.62 KB
/
CNametags.h
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: mods/deathmatch/logic/CNametags.h
* PURPOSE: Header for nametags class
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
*****************************************************************************/
#pragma once
class CHud;
class CClientManager;
class CClientPlayer;
class CClientPlayerManager;
class CClientPedManager;
class CClientStreamer;
class CNametags
{
public:
CNametags(CClientManager* pManager);
~CNametags();
bool GetDrawHealth() { return m_bDrawHealth; };
void SetDrawHealth(bool bDrawHealth) { m_bDrawHealth = bDrawHealth; };
void DoPulse();
void DrawFromAim();
void DrawDefault();
void DrawTagForPlayer(CClientPlayer* pPlayer, unsigned char ucAlpha);
unsigned int GetDimension() { return m_usDimension; }
void SetDimension(unsigned short usDimension) { m_usDimension = usDimension; }
bool IsVisible() { return m_bVisible; }
void SetVisible(bool bVisible) { m_bVisible = bVisible; }
unsigned char m_ucInterior = 0;
private:
static bool CompareNametagDistance(CClientPlayer* p1, CClientPlayer* p2);
CClientPlayerManager* m_pPlayerManager;
CClientStreamer* m_pPlayerStreamer;
bool m_bDrawHealth;
CHud* m_pHud;
bool m_bDrawFromAim;
unsigned short m_usDimension;
bool m_bVisible;
CTextureItem* m_pConnectionTroubleIcon;
};