blob: 629ad3336b9cb32b5f105f0634c60d8ef5f40287 (
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
42
43
44
45
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//===========================================================================//
#ifndef DOD_HEADICONMANAGER_H
#define DOD_HEADICONMANAGER_H
#ifdef _WIN32
#pragma once
#endif
#include "bitvec.h"
class IMaterial;
class CHeadIconManager : CAutoGameSystem
{
public:
CHeadIconManager();
~CHeadIconManager();
virtual bool Init();
virtual void Shutdown();
public:
// Call from the HUD_CreateEntities function so it can add sprites above player heads.
void DrawHeadIcons();
// Call from player render calls to indicate a head icon should be drawn for this player this frame
void PlayerDrawn( C_BasePlayer *pPlayer );
private:
IMaterial *m_pAlliesIconMaterial; // For labels above players' heads.
IMaterial *m_pAxisIconMaterial; // For labels above players' heads.
CBitVec<MAX_PLAYERS> m_PlayerDrawn; // Was the player drawn this frame?
};
// Get the (global) head icon manager.
CHeadIconManager* HeadIconManager();
#endif // DOD_HEADICONMANAGER_H
|