diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/ai_basenpc_flyer_new.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/ai_basenpc_flyer_new.h')
| -rw-r--r-- | sp/src/game/server/ai_basenpc_flyer_new.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sp/src/game/server/ai_basenpc_flyer_new.h b/sp/src/game/server/ai_basenpc_flyer_new.h new file mode 100644 index 00000000..a20a7ec3 --- /dev/null +++ b/sp/src/game/server/ai_basenpc_flyer_new.h @@ -0,0 +1,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
|