Team Fortress 2 Source Code as on 22/4/2020
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.

42 lines
816 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef AMMO_BOX_H
  7. #define AMMO_BOX_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "items.h"
  12. class CAmmoBox : public CItem
  13. {
  14. public:
  15. DECLARE_CLASS( CAmmoBox, CItem );
  16. CAmmoBox() {}
  17. virtual void Spawn();
  18. virtual void Precache();
  19. void EXPORT FlyThink( void );
  20. void EXPORT BoxTouch( CBaseEntity *pOther );
  21. bool MyTouch( CBasePlayer *pBasePlayer );
  22. static CAmmoBox *Create( const Vector &vecOrigin, const QAngle &vecAngles, CBaseEntity *pOwner, int team );
  23. void SetAmmoTeam( int team );
  24. private:
  25. EHANDLE m_hOldOwner;
  26. int m_iAmmoTeam;
  27. private:
  28. CAmmoBox( const CAmmoBox & );
  29. DECLARE_DATADESC();
  30. };
  31. #endif //GENERIC_AMMO_H