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.

33 lines
744 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TRIGGER_PASSTIME_BALL_H
  8. #define TRIGGER_PASSTIME_BALL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "baseentity.h"
  13. //-----------------------------------------------------------------------------
  14. class CTriggerPasstimeBall : public CBaseEntity
  15. {
  16. public:
  17. DECLARE_CLASS( CTriggerPasstimeBall, CBaseEntity );
  18. DECLARE_DATADESC();
  19. virtual void Spawn() OVERRIDE;
  20. private:
  21. void Update();
  22. bool BTouching( CBaseEntity *pEnt );
  23. bool m_bPresent;
  24. COutputEvent m_onBallEnter;
  25. COutputEvent m_onBallExit;
  26. };
  27. #endif // TRIGGER_PASSTIME_BALL_H