summaryrefslogtreecommitdiff
path: root/game/server/tf2/order_repair.h
blob: fd94a0be950cc8ef5b84d15246eafe7c8a4fe859 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

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


#include "orders.h"


class CPlayerClass;
class CPlayerClassDefender;


class COrderRepair : public COrder
{
public:
	DECLARE_CLASS( COrderRepair, COrder );
	DECLARE_SERVERCLASS();

	// Create an order for the defender to fix friendly objects.
	static bool		CreateOrder_RepairFriendlyObjects( CPlayerClassDefender *pClass );

	// Create an order for anyone to repair their own objects.
	static bool		CreateOrder_RepairOwnObjects( CPlayerClass *pClass );


// COrder overrides.
public:

	virtual bool	Update( void );
};


#endif // ORDER_REPAIR_H