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.

45 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Interface of CPlayerReport
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //------------------------------------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef PLAYERREPORT_H
  14. #define PLAYERREPORT_H
  15. #ifdef WIN32
  16. #pragma once
  17. #endif
  18. #include "Player.h"
  19. #include "Report.h"
  20. #include "PlrPersist.h"
  21. //------------------------------------------------------------------------------------------------------
  22. // Purpose: Reports a specific player's stats.
  23. //------------------------------------------------------------------------------------------------------
  24. class CPlayerReport: public CReport
  25. {
  26. private:
  27. CPlayer* pPlayer;
  28. CPlrPersist* pPersist;
  29. int iWhichTeam;
  30. static map<unsigned long,bool> alreadyPersisted;
  31. static map<unsigned long,bool> alreadyWroteCombStats;
  32. bool reportingPersistedPlayer;
  33. void writePersistHTML(CHTMLFile& html);
  34. public:
  35. CPlayerReport(CPlayer* pP,int t):pPlayer(pP),iWhichTeam(t){reportingPersistedPlayer=false;}
  36. CPlayerReport(CPlrPersist* pPP):pPersist(pPP) {iWhichTeam=-1;reportingPersistedPlayer=true;}
  37. virtual void writeHTML(CHTMLFile& html);
  38. };
  39. #endif // PLAYERREPORT_H