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.

39 lines
955 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. // func_passtime_goal - based on func_capture_zone
  8. #ifndef C_FUNC_PASSTIME_GOAL_H
  9. #define C_FUNC_PASSTIME_GOAL_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "util_shared.h"
  14. #include "c_baseentity.h"
  15. //-----------------------------------------------------------------------------
  16. class C_FuncPasstimeGoal : public C_BaseEntity, public TAutoList<C_FuncPasstimeGoal>
  17. {
  18. public:
  19. DECLARE_CLASS( C_FuncPasstimeGoal, C_BaseEntity );
  20. DECLARE_CLIENTCLASS();
  21. bool BGoalTriggerDisabled() const { return m_bTriggerDisabled; }
  22. int GetGoalType() const { return m_iGoalType; }
  23. enum GoalType
  24. {
  25. TYPE_HOOP,
  26. TYPE_ENDZONE,
  27. TYPE_TOWER,
  28. };
  29. private:
  30. CNetworkVar( bool, m_bTriggerDisabled );
  31. CNetworkVar( int, m_iGoalType );
  32. };
  33. #endif // C_FUNC_PASSTIME_GOAL_H