mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 22:27:05 +00:00
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
|
//========= 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
|