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.

40 lines
1.0 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #include "cbase.h"
  14. #include "ai_link.h"
  15. // memdbgon must be the last include file in a .cpp file!!!
  16. #include "tier0/memdbgon.h"
  17. ASSERT_INVARIANT( ( bits_LINK_STALE_SUGGESTED | bits_LINK_OFF ) <= 255 && ( AI_MOVE_TYPE_BITS <= 255 ) );
  18. //-----------------------------------------------------------------------------
  19. // Purpose: Constructor
  20. // Input :
  21. // Output :
  22. //-----------------------------------------------------------------------------
  23. CAI_Link::CAI_Link(void)
  24. {
  25. m_iSrcID = -1;
  26. m_iDestID = -1;
  27. m_LinkInfo = 0;
  28. m_timeStaleExpires = 0;
  29. m_pDynamicLink = NULL;
  30. m_nDangerCount = 0;
  31. for (int hull=0;hull<NUM_HULLS;hull++)
  32. {
  33. m_iAcceptedMoveTypes[hull] = 0;
  34. }
  35. };