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.

50 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Interface of CScoreboard
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //------------------------------------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef SCOREBOARD_H
  14. #define SCOREBOARD_H
  15. #ifdef WIN32
  16. #pragma once
  17. #endif
  18. #pragma warning (disable: 4786)
  19. #include "report.h"
  20. #include <map>
  21. #include <vector>
  22. #include <string>
  23. using namespace std;
  24. //------------------------------------------------------------------------------------------------------
  25. // Purpose: CScoreboard is a report element that outputs a scoreboard that tallies
  26. // up all the kills and deaths for each player. it also displays (and sorts by) a
  27. // player's rank. Rank is defined by how many kills a player got minus how many
  28. // times he died divided by the time he was in the game.
  29. //------------------------------------------------------------------------------------------------------
  30. class CScoreboard : public CReport
  31. {
  32. private:
  33. void init();
  34. public:
  35. explicit CScoreboard(){init();}
  36. void generate();
  37. void writeHTML(CHTMLFile& html);
  38. };
  39. #endif // SCOREBOARD_H