Counter Strike : Global Offensive Source Code
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.

49 lines
1.3 KiB

  1. //========= Copyright � 1996-2007, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: A single behavior that handles running all of the NPC's add ons
  4. //
  5. //=====================================================================================//
  6. /*
  7. #ifndef AI_BEHAVIOR_ADDONHOST_H
  8. #define AI_BEHAVIOR_ADDONHOST_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "ai_behavior.h"
  13. class CAI_AddOn;
  14. //=====================================================================================//
  15. //=====================================================================================//
  16. class CAI_AddOnHostBehavior : public CAI_SimpleBehavior
  17. {
  18. DECLARE_CLASS( CAI_AddOnHostBehavior, CAI_SimpleBehavior );
  19. public:
  20. CAI_AddOnHostBehavior();
  21. virtual const char *GetName() { return "AddOnHost"; }
  22. virtual void GatherConditions();
  23. virtual void GatherConditionsNotActive();
  24. private:
  25. //----------------------------------------------
  26. // Conditions gathering
  27. //----------------------------------------------
  28. void GatherConditionsCentral();
  29. public:
  30. //----------------------------------------------
  31. // AddOn management
  32. //----------------------------------------------
  33. void RegisterAddOn( CAI_AddOn *pAddOn );
  34. private:
  35. CUtlVector<CHandle<CAI_AddOn>>m_AddOns;
  36. DECLARE_DATADESC();
  37. };
  38. #endif//AI_BEHAVIOR_ADDONHOST_H
  39. */