aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/baseprojectile.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/shared/baseprojectile.h')
-rw-r--r--mp/src/game/shared/baseprojectile.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/mp/src/game/shared/baseprojectile.h b/mp/src/game/shared/baseprojectile.h
new file mode 100644
index 00000000..2ff00fc5
--- /dev/null
+++ b/mp/src/game/shared/baseprojectile.h
@@ -0,0 +1,53 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef BASEPROJECTILE_H
+#define BASEPROJECTILE_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "cbase.h"
+
+#ifdef GAME_DLL
+#include "baseanimating.h"
+#else
+#include "c_baseanimating.h"
+#endif
+
+#ifdef CLIENT_DLL
+#define CBaseProjectile C_BaseProjectile
+#endif // CLIENT_DLL
+
+//=============================================================================
+//
+// Base Projectile.
+//
+//=============================================================================
+class CBaseProjectile : public CBaseAnimating
+{
+public:
+ DECLARE_CLASS( CBaseProjectile, CBaseAnimating );
+ DECLARE_NETWORKCLASS();
+
+ CBaseProjectile();
+
+#ifdef GAME_DLL
+ virtual int GetDestroyableHitCount( void ) const { return m_iDestroyableHitCount; }
+ void IncrementDestroyableHitCount( void ) { ++m_iDestroyableHitCount; }
+#endif // GAME_DLL
+
+ virtual bool IsDestroyable( void ) { return false; }
+ virtual void Destroy( bool bBlinkOut = true, bool bBreakRocket = false ) {}
+
+protected:
+#ifdef GAME_DLL
+ int m_iDestroyableHitCount;
+#endif // GAME_DLL
+};
+
+#endif // BASEPROJECTILE_H