summaryrefslogtreecommitdiff
path: root/game/client/tf/c_func_passtime_goal.h
blob: 9f9c3ca620e3c648610128d7c70dc4e52c93c3e2 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

// func_passtime_goal - based on func_capture_zone
#ifndef C_FUNC_PASSTIME_GOAL_H
#define C_FUNC_PASSTIME_GOAL_H
#ifdef _WIN32
#pragma once
#endif

#include "util_shared.h"
#include "c_baseentity.h"

//-----------------------------------------------------------------------------
class C_FuncPasstimeGoal : public C_BaseEntity, public TAutoList<C_FuncPasstimeGoal>
{
public:
	DECLARE_CLASS( C_FuncPasstimeGoal, C_BaseEntity );
	DECLARE_CLIENTCLASS();
	bool BGoalTriggerDisabled() const { return m_bTriggerDisabled; }
	int GetGoalType() const { return m_iGoalType;  }

	enum GoalType
	{
		TYPE_HOOP,
		TYPE_ENDZONE,
		TYPE_TOWER,
	};

private:
	CNetworkVar( bool, m_bTriggerDisabled );
	CNetworkVar( int, m_iGoalType );
};

#endif // C_FUNC_PASSTIME_GOAL_H