You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.2 KiB
54 lines
1.2 KiB
![]()
4 years ago
|
//========= 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
|