aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/ai_basenpc_flyer_new.h
blob: ed99963f3e1c667e7ecaa96cf51ee37ae2a74a40 (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
52
53
54
55
56
57
58
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================//

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

#include "ai_basenpc.h"
#include "ai_condition.h"


enum BaseNPCFlyerConditions_t 
{
	COND_FLYER_MOVE_BLOCKED = LAST_SHARED_CONDITION,
	COND_FLYER_MOVE_IMPOSSIBLE,

	// ======================================
	// IMPORTANT: This must be the last enum
	// ======================================
	LAST_FLYER_SHARED_CONDITION
};


//-----------------------------------------------------------------------------
// The combot.
//-----------------------------------------------------------------------------
class CAI_BaseNPCFlyerNew : public CAI_BaseNPC
{
	DECLARE_CLASS( CAI_BaseNPCFlyerNew, CAI_BaseNPC );
public:
//	DEFINE_CUSTOM_AI;

	virtual void	StartTask( const Task_t *pTask );
	virtual void	RunTask( const Task_t *pTask );

	virtual float	GetIdealSpeed( ) const;
	virtual float	MinGroundDist(void);

	CAI_BaseNPCFlyerNew();

protected:
	// Call this to set up a flyer
	void SpawnFlyer();

	// Yarg! Must be chained down from leaf classes...
	void ClearFlyerConditions(void);

	// Override this when we had to abort movement
	virtual void AbortedMovement( void ) {}
};

#endif // AI_BASENPC_FLYER_NEW_H