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.

81 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Quickplay related code shared between GC and client
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef _INCLUDED_TF_QUICKPLAY_SHARED_H
  8. #define _INCLUDED_TF_QUICKPLAY_SHARED_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. class CUtlStringList;
  13. const int kTFMaxQuickPlayServersToScore = 25;
  14. const int kTFQuickPlayIdealMaxNumberOfPlayers = 24;
  15. const int kTFQuickPlayMinMaxNumberOfPlayers = 18; // don't auto match to servers with max players set too low
  16. const int kTFQuickPlayMaxPlayers = 33;
  17. const struct SchemaMap_t *GetQuickplayMapInfoByName( const char *pMapName );
  18. extern float QuickplayCalculateServerScore( int numHumans, int numBots, int maxPlayers, int nNumInSearchParty );
  19. extern const char k_szQuickplayFAQ_URL[];
  20. struct QuickplaySearchOptions
  21. {
  22. EGameCategory m_eSelectedGameType;
  23. enum EServers
  24. {
  25. eServersOfficial,
  26. eServersCommunity,
  27. eServersDontCare
  28. };
  29. EServers m_eServers;
  30. enum ERandomCrits
  31. {
  32. eRandomCritsYes,
  33. eRandomCritsNo,
  34. eRandomCritsDontCare
  35. };
  36. ERandomCrits m_eRandomCrits;
  37. enum EDamageSpread
  38. {
  39. eDamageSpreadNo,
  40. eDamageSpreadYes,
  41. eDamageSpreadDontCare
  42. };
  43. EDamageSpread m_eDamageSpread;
  44. enum EMaxPlayers
  45. {
  46. eMaxPlayers24,
  47. eMaxPlayers30Plus,
  48. eMaxPlayersDontCare
  49. };
  50. EMaxPlayers m_eMaxPlayers;
  51. enum ERespawnTimes
  52. {
  53. eRespawnTimesDefault,
  54. eRespawnTimesInstant,
  55. eRespawnTimesDontCare
  56. };
  57. ERespawnTimes m_eRespawnTimes;
  58. enum EBetaContent
  59. {
  60. eBetaNo,
  61. eBetaYes
  62. };
  63. EBetaContent m_eBetaContent;
  64. CUtlString m_strMapName;
  65. };
  66. #endif // #ifndef _INCLUDED_TF_QUICKPLAY_SHARED_H