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.

38 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Interface of CTalkativeAward
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //------------------------------------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef TALKATIVEAWARD_H
  14. #define TALKATIVEAWARD_H
  15. #ifdef WIN32
  16. #pragma once
  17. #endif
  18. #include "Award.h"
  19. #include <map>
  20. using namespace std;
  21. //------------------------------------------------------------------------------------------------------
  22. // Purpose: CTalkativeAward is an award given to the player who speaks the most
  23. // words.
  24. //------------------------------------------------------------------------------------------------------
  25. class CTalkativeAward: public CAward
  26. {
  27. protected:
  28. map<PID,int> numtalks;
  29. void noWinner(CHTMLFile& html);
  30. void extendedinfo(CHTMLFile& html);
  31. map<int,string> fulltalktext;
  32. public:
  33. explicit CTalkativeAward():CAward("Bigmouth"){}
  34. void getWinner();
  35. };
  36. #endif // TALKATIVEAWARD_H