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.

36 lines
1.1 KiB

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