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.

56 lines
1.4 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Interface of CAward, the base class for all awards
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //------------------------------------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef AWARD_H
  14. #define AWARD_H
  15. #ifdef WIN32
  16. #pragma once
  17. #endif
  18. #pragma warning(disable :4786)
  19. #include "Report.h"
  20. #include <string>
  21. //------------------------------------------------------------------------------------------------------
  22. // Purpose: CAward is the base class for all awards, it is in turn a subclass of
  23. // CReport. This class handles all the boring details of writing out the awards
  24. // and things, so that the subclasses need only specify the name of the award
  25. // and who won it, then this class will take care of the rest
  26. //------------------------------------------------------------------------------------------------------
  27. class CAward: public CReport
  28. {
  29. //from CReport:
  30. protected:
  31. virtual void generate();
  32. protected:
  33. std::string awardName;
  34. std::string winnerName;
  35. PID winnerID;
  36. bool fNoWinner;
  37. CAward(char* name);
  38. virtual void extendedinfo(CHTMLFile& html){};
  39. virtual void noWinner(CHTMLFile& html){};
  40. public:
  41. virtual void getWinner(){}
  42. virtual void writeHTML(CHTMLFile& html);
  43. virtual ~CAward();
  44. };
  45. #endif // AWARD_H