summaryrefslogtreecommitdiff
path: root/game/server/tf2/order_assist.h
blob: 821fab7e8ede0270943e71cc6ee1f9384c9ae4c4 (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
46
47
48
49
50
51
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

#ifndef TF_ORDER_ASSIST_H
#define TF_ORDER_ASSIST_H
#ifdef _WIN32
#pragma once
#endif


#include "order_player.h"


class CPlayerClass;


class COrderAssist : public COrderPlayer
{
public:
	DECLARE_CLASS( COrderAssist, COrderPlayer );
	DECLARE_SERVERCLASS();

	// Create an order for the player.
	static bool		CreateOrder( CPlayerClass *pClass );


// COrder overrides.
public:

	virtual bool	Update();
	virtual bool	UpdateOnEvent( COrderEvent_Base *pEvent );


private:
	
	enum
	{
		NUM_ASSIST_ENEMIES = 2
	};

	// The order goes away when the player who has the assist order shoots
	// one of these enemies.
	CHandle<CBaseEntity>	m_Enemies[NUM_ASSIST_ENEMIES];
};


#endif // TF_ORDER_ASSIST_H